mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user