diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index a8949daa8..24e639410 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -1,11 +1,11 @@ # See the docs here: https://www.rubydoc.info/github/DatabaseCleaner/database_cleaner RSpec.configure do |config| config.before(:suite) do - DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.before(:each) do + DatabaseCleaner.strategy = :transaction DatabaseCleaner.start end