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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
dc22dd8a
Commit
dc22dd8a
authored
Oct 03, 2012
by
Valeriy Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factories spec refactoring after #1616
parent
b5f9d29f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spec/factories_spec.rb
spec/factories_spec.rb
+3
-1
No files found.
spec/factories_spec.rb
View file @
dc22dd8a
require
'spec_helper'
require
'spec_helper'
INVALID_FACTORIES
=
[
:key_with_a_space_in_the_middle
]
FactoryGirl
.
factories
.
map
(
&
:name
).
each
do
|
factory_name
|
FactoryGirl
.
factories
.
map
(
&
:name
).
each
do
|
factory_name
|
next
if
:key_with_a_space_in_the_middle
==
factory_name
next
if
INVALID_FACTORIES
.
include?
(
factory_name
)
describe
"
#{
factory_name
}
factory"
do
describe
"
#{
factory_name
}
factory"
do
it
'should be valid'
do
it
'should be valid'
do
build
(
factory_name
).
should
be_valid
build
(
factory_name
).
should
be_valid
...
...
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