Sha256: fffbcfca8bb9d973873953518044d4f55d71231d00077720d511ba3b28074ac6
Contents?: true
Size: 254 Bytes
Versions: 23
Compression:
Stored size: 254 Bytes
Contents
RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.around(:each) do |example| DatabaseCleaner.cleaning do example.run end end end
Version data entries
23 entries across 23 versions & 4 rubygems
Version | Path |
---|---|
scoby-0.0.2 | templates/database_cleaner_rspec.rb |
scoby-0.0.1 | templates/database_cleaner_rspec.rb |
auto_increment-1.2.0 | spec/support/database_cleaner.rb |