Switch logic for linting factories
Only if you set the environment variable OSEM_FACTORY_LINT to 'false' it won't lint.
This commit is contained in:
parent
3ce62979bd
commit
bd36ce0fb2
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ require_relative 'external_request'
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
|
|
||||||
config.before(:suite) do
|
config.before(:suite) do
|
||||||
if CONFIG['factory_girl_lint']
|
if ENV['OSEM_FACTORY_LINT'] != 'false'
|
||||||
mock_commercial_request
|
mock_commercial_request
|
||||||
FactoryGirl.lint
|
FactoryGirl.lint
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue