mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
|
@ -15,6 +15,10 @@ defaults: &defaults
|
|||
ichain:
|
||||
enabled: false
|
||||
|
||||
# Set it to false if you don't want FactoryGirl lint to run before every test suit.
|
||||
# You can run lint manually with: bundle exec rake factory_girl:lint
|
||||
factory_girl_lint: true
|
||||
|
||||
development:
|
||||
<<: *defaults
|
||||
|
||||
|
|
|
|||
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