osem-fcy/spec/support/factory_girl.rb
Aditya Prakash 640be7497f 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`
2016-03-02 21:15:29 +05:30

7 lines
119 B
Ruby

RSpec.configure do |config|
config.before(:suite) do
FactoryGirl.lint if CONFIG['factory_girl_lint']
end
end