Add config to allow running FactoryGirl lint before suit
By default the lint will be run before every test suit. Set it to false in config.yml if you would rather just use the rake task: `bundle exec rake factory_girl:lint`
This commit is contained in:
parent
f84150362b
commit
640be7497f
2 changed files with 11 additions and 0 deletions
7
spec/support/factory_girl.rb
Normal file
7
spec/support/factory_girl.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
RSpec.configure do |config|
|
||||
|
||||
config.before(:suite) do
|
||||
FactoryGirl.lint if CONFIG['factory_girl_lint']
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue