Sha256: 945ee9213e6c73c89c684b329744c0a6fab46b05a7fea90ef4616d4e0c2b981e
Contents?: true
Size: 352 Bytes
Versions: 2
Compression:
Stored size: 352 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 do DatabaseCleaner.start end config.around do |spec| DatabaseCleaner.cleaning do spec.run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
idy-1.1.0 | spec/support/database_cleaner.rb |
idy-1.0.0 | spec/support/database_cleaner.rb |