Sha256: a949271c01dbc6db88de250f9c10cad3c281c9a9beadb529a74711fe82cc99f9
Contents?: true
Size: 347 Bytes
Versions: 3
Compression:
Stored size: 347 Bytes
Contents
# frozen_string_literal: true require 'database_cleaner/active_record' RSpec.configure do |config| # Database Cleaner setup config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.around do |example| DatabaseCleaner.cleaning do example.run end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stateful_models-0.0.3 | spec/support/database_cleaner.rb |
stateful_models-0.0.2 | spec/support/database_cleaner.rb |
stateful_models-0.0.1 | spec/support/database_cleaner.rb |