Sha256: 5886c8a531b057d74c483071d94c1ffebdb3b4383e85d63a5d5c6c89ff8089e2
Contents?: true
Size: 455 Bytes
Versions: 19
Compression:
Stored size: 455 Bytes
Contents
require "database_cleaner" require "rspec/rails" RSpec.configure do |config| # stop wrapping each of test examples within a transaction config.use_transactional_fixtures = false config.before :suite do DatabaseCleaner.clean_with :truncation end config.before :each do DatabaseCleaner.strategy = :transaction end config.before :each do DatabaseCleaner.start end config.after :each do DatabaseCleaner.clean end end
Version data entries
19 entries across 19 versions & 3 rubygems