Sha256: b92da7b07ed932c21c447cd0f519d844349a40552f5feb8f96336bb5acdb38fb
Contents?: true
Size: 364 Bytes
Versions: 8
Compression:
Stored size: 364 Bytes
Contents
require 'database_cleaner' RSpec.configure do |config| config.before :suite do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with :truncation end config.before do DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction DatabaseCleaner.start end config.after do DatabaseCleaner.clean end end
Version data entries
8 entries across 8 versions & 3 rubygems