From afd82a4901f1293404fe2fbdaf9586f38e71a9ee Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Mon, 6 Mar 2023 12:38:25 +0100 Subject: [PATCH] remove unused truncation database cleaner strategy --- spec/spec_helper.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 41894406..8b1c6ace 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,10 +21,6 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } RSpec.configure do |config| # We use capybara with webkit, and need database_cleaner - config.before(:suite) do - DatabaseCleaner.clean_with(:truncation) - end - config.before(:each) do DatabaseCleaner.strategy = (RSpec.current_example.metadata[:js] ? :truncation : :transaction) DatabaseCleaner.start