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:
Henne Vogelsang 2016-03-22 17:53:49 +01:00
parent 3ce62979bd
commit bd36ce0fb2

View file

@ -3,7 +3,7 @@ require_relative 'external_request'
RSpec.configure do |config|
config.before(:suite) do
if CONFIG['factory_girl_lint']
if ENV['OSEM_FACTORY_LINT'] != 'false'
mock_commercial_request
FactoryGirl.lint
end