Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
be7b829d
Commit
be7b829d
authored
Feb 25, 2021
by
John Hope
Committed by
Thong Kuah
Feb 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove invalid design management version factory trait
parent
c4088b82
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
spec/factories/design_management/versions.rb
spec/factories/design_management/versions.rb
+0
-5
spec/factories_spec.rb
spec/factories_spec.rb
+0
-1
spec/support/helpers/design_management_test_helpers.rb
spec/support/helpers/design_management_test_helpers.rb
+1
-1
No files found.
spec/factories/design_management/versions.rb
View file @
be7b829d
...
@@ -13,11 +13,6 @@ FactoryBot.define do
...
@@ -13,11 +13,6 @@ FactoryBot.define do
deleted_designs
{
[]
}
deleted_designs
{
[]
}
end
end
# Warning: this will intentionally result in an invalid version!
trait
:empty
do
designs_count
{
0
}
end
trait
:importing
do
trait
:importing
do
issue
{
nil
}
issue
{
nil
}
...
...
spec/factories_spec.rb
View file @
be7b829d
...
@@ -13,7 +13,6 @@ RSpec.describe 'factories' do
...
@@ -13,7 +13,6 @@ RSpec.describe 'factories' do
[
:ci_job_artifact
,
:raw
],
[
:ci_job_artifact
,
:raw
],
[
:ci_job_artifact
,
:gzip
],
[
:ci_job_artifact
,
:gzip
],
[
:ci_job_artifact
,
:correct_checksum
],
[
:ci_job_artifact
,
:correct_checksum
],
[
:design_version
,
:empty
],
[
:environment
,
:non_playable
],
[
:environment
,
:non_playable
],
[
:go_module_commit
,
:files
],
[
:go_module_commit
,
:files
],
[
:go_module_commit
,
:package
],
[
:go_module_commit
,
:package
],
...
...
spec/support/helpers/design_management_test_helpers.rb
View file @
be7b829d
...
@@ -35,7 +35,7 @@ module DesignManagementTestHelpers
...
@@ -35,7 +35,7 @@ module DesignManagementTestHelpers
def
act_on_designs
(
designs
,
&
block
)
def
act_on_designs
(
designs
,
&
block
)
issue
=
designs
.
first
.
issue
issue
=
designs
.
first
.
issue
version
=
build
(
:design_version
,
:empty
,
issue:
issue
).
tap
{
|
v
|
v
.
save!
(
validate:
false
)
}
version
=
build
(
:design_version
,
designs_count:
0
,
issue:
issue
).
tap
{
|
v
|
v
.
save!
(
validate:
false
)
}
designs
.
each
do
|
d
|
designs
.
each
do
|
d
|
yield
.
create!
(
design:
d
,
version:
version
)
yield
.
create!
(
design:
d
,
version:
version
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment