osem-fcy/spec/support/factory_girl.rb
Henne Vogelsang bd36ce0fb2 Switch logic for linting factories
Only if you set the environment variable OSEM_FACTORY_LINT
to 'false' it won't lint.
2016-04-29 16:36:47 +02:00

12 lines
208 B
Ruby

require_relative 'external_request'
RSpec.configure do |config|
config.before(:suite) do
if ENV['OSEM_FACTORY_LINT'] != 'false'
mock_commercial_request
FactoryGirl.lint
end
end
end