Sha256: 4cac773a464adc1855d868a62414d7f90bcafac9225cf6ecbbd008c394e92925
Contents?: true
Size: 367 Bytes
Versions: 24
Compression:
Stored size: 367 Bytes
Contents
require 'database_cleaner' RSpec.configure do |config| config.before(:suite) do if defined?(::DB) DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with :truncation end end config.before(:each) do DatabaseCleaner.start if defined?(::DB) end config.after(:each) do DatabaseCleaner.clean if defined?(::DB) end end
Version data entries
24 entries across 24 versions & 1 rubygems