Sha256: 44c6f5acdf4d5028114a6da635cbf3dac12e372c6e659fce97f4217b4e6038d4
Contents?: true
Size: 624 Bytes
Versions: 4
Compression:
Stored size: 624 Bytes
Contents
ENV['RACK_ENV'] ||= 'test' require File.expand_path('../config/environment', __dir__) RSpec.configure do |config| config.before :suite do ActiveRecord::Migration.verbose = false ActiveRecord::Base.logger = nil ActiveRecord::Migration.maintain_test_schema! end if defined?(ActiveRecord) config.before :suite do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with :truncation end config.around :each do |example| DatabaseCleaner.cleaning { example.run } end config.include FactoryBot::Syntax::Methods config.before :suite do FactoryBot.find_definitions end end
Version data entries
4 entries across 4 versions & 1 rubygems