mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update spec/lib/open_food_network/i18n_config_spec.rb
This commit is contained in:
@@ -6,11 +6,8 @@ require 'open_food_network/i18n_config'
|
||||
module OpenFoodNetwork
|
||||
describe I18nConfig do
|
||||
before do
|
||||
# These are only needed here because we are stubbing ENV elsewhere in this file
|
||||
# Here we make these calls to ENV return a value and that makes database_cleaner work
|
||||
allow(ENV).to receive(:[]).with("DATABASE_CLEANER_ALLOW_PRODUCTION").and_return("false")
|
||||
allow(ENV).to receive(:[]).with("DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL").
|
||||
and_return("false")
|
||||
# Allow non-stubbed calls to ENV to proceed
|
||||
allow(ENV).to receive(:[]).and_call_original
|
||||
end
|
||||
|
||||
context "in default test configuration" do
|
||||
|
||||
Reference in New Issue
Block a user