Update FactoryBot strings & urls

This commit is contained in:
Henne Vogelsang 2018-09-03 20:48:28 +02:00
parent 4aed8a73b2
commit deb4dd21f5
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0
34 changed files with 34 additions and 34 deletions

View file

@ -0,0 +1,20 @@
# frozen_string_literal: true
require_relative 'external_request'
RSpec.configure do |config|
config.before(:suite) do
if ENV['OSEM_FACTORY_LINT'] != 'false'
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
begin
DatabaseCleaner.start
mock_commercial_request
FactoryBot.lint
ensure
DatabaseCleaner.clean
end
end
end
end