Sha256: d18d826ddd0e02234c240250c6fbbda53cb0e993d9b995868d2ca57faa98de17
Contents?: true
Size: 326 Bytes
Versions: 3
Compression:
Stored size: 326 Bytes
Contents
require 'database_cleaner' RSpec.configure do |config| config.before :suite do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with :truncation 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 |
---|---|
attachy-0.1.2 | spec/support/database_cleaner.rb |
attachy-0.1.1 | spec/support/database_cleaner.rb |
attachy-0.1.0 | spec/support/database_cleaner.rb |