Remove old test setup code of feature specs

The `js: true` tag was only used in feature specs. Some system specs
still contain that tag but they don't require this file. So it's dead
code.
This commit is contained in:
Maikel Linke
2023-02-24 15:04:03 +11:00
parent 3ffe39d467
commit bba41177b4

View File

@@ -15,19 +15,12 @@ RSpec.configure do |config|
DatabaseCleaner.clean_with :deletion, except: ['spree_countries', 'spree_states']
}
config.before(:each) { DatabaseCleaner.strategy = :transaction }
config.before(:each, js: true) {
DatabaseCleaner.strategy = :deletion, { except: ['spree_countries', 'spree_states'] }
}
config.before(:each, concurrency: true) {
DatabaseCleaner.strategy = :deletion, { except: ['spree_countries', 'spree_states'] }
}
config.before(:each) { DatabaseCleaner.start }
config.after(:each) { DatabaseCleaner.clean }
config.after(:each, js: true) do
Capybara.reset_sessions!
end
# Precompile Webpacker assets (once) when starting the suite. The default setup can result
# in the assets getting compiled many times throughout the build, slowing it down.
config.before :suite do