Sha256: aaad26aab43552d3f9382a69a0e29c15750a5819b9abd1d3a8b1e68083cf13e5
Contents?: true
Size: 358 Bytes
Versions: 3
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true require 'database_cleaner' RSpec.configure do |config| config.before :suite do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with :transaction end config.before :each do DatabaseCleaner.start end config.around do |spec| DatabaseCleaner.cleaning do spec.run end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
idy-0.1.3 | spec/support/database_cleaner.rb |
idy-0.1.2 | spec/support/database_cleaner.rb |
idy-0.1.1 | spec/support/database_cleaner.rb |