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
722585a9
Commit
722585a9
authored
Jun 08, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a spec failure caused by extra factories in EE
parent
0a6041d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
spec/factories_spec.rb
spec/factories_spec.rb
+4
-0
No files found.
spec/factories_spec.rb
View file @
722585a9
...
...
@@ -8,12 +8,16 @@ describe 'factories' do
end
it
'does not raise error when created'
do
skip
(
"
#{
factory
.
name
}
cannot be saved"
)
unless
build
(
factory
.
name
).
respond_to?
(
:save!
)
expect
{
create
(
factory
.
name
)
}.
not_to
raise_error
end
factory
.
definition
.
defined_traits
.
map
(
&
:name
).
each
do
|
trait_name
|
describe
"linting
#{
trait_name
}
trait"
do
skip
'does not raise error when created'
do
skip
(
"
#{
factory
.
name
}
cannot be saved"
)
unless
build
(
factory
.
name
).
respond_to?
(
:save!
)
expect
{
create
(
factory
.
name
,
trait_name
)
}.
not_to
raise_error
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