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`
7 lines
119 B
Ruby
7 lines
119 B
Ruby
RSpec.configure do |config|
|
|
|
|
config.before(:suite) do
|
|
FactoryGirl.lint if CONFIG['factory_girl_lint']
|
|
end
|
|
|
|
end
|