mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Force use of expect over should in spec expectations
This commit is contained in:
@@ -91,6 +91,11 @@ RSpec.configure do |config|
|
||||
# Retry
|
||||
config.verbose_retry = true
|
||||
|
||||
# Force use of expect (over should)
|
||||
config.expect_with :rspec do |expectations|
|
||||
expectations.syntax = :expect
|
||||
end
|
||||
|
||||
# DatabaseCleaner
|
||||
config.before(:suite) { DatabaseCleaner.clean_with :deletion, except: ['spree_countries', 'spree_states'] }
|
||||
config.before(:each) { DatabaseCleaner.strategy = :transaction }
|
||||
|
||||
Reference in New Issue
Block a user