remove unused truncation database cleaner strategy

This commit is contained in:
Philipp Rothmann 2023-03-06 12:38:25 +01:00
parent 33eec7aa25
commit afd82a4901
1 changed files with 0 additions and 4 deletions

View File

@ -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