Sha256: 5c33e442245bf1fa618b685d4bddd37ab446055052948a45cbf5183daa80baa7
Contents?: true
Size: 471 Bytes
Versions: 4
Compression:
Stored size: 471 Bytes
Contents
RSpec.configure do |config| config.before(:suite) do begin DatabaseCleaner.clean_with(:truncation) FactoryGirl.lint ensure DatabaseCleaner.clean end end config.before(:each) do DatabaseCleaner.strategy = :transaction end config.before(:each, js: true) do DatabaseCleaner.strategy = :truncation end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
4 entries across 4 versions & 2 rubygems