diff --git a/spec/lib/open_food_network/i18n_config_spec.rb b/spec/lib/open_food_network/i18n_config_spec.rb index 198c0c0cdca..61fced14869 100644 --- a/spec/lib/open_food_network/i18n_config_spec.rb +++ b/spec/lib/open_food_network/i18n_config_spec.rb @@ -5,6 +5,12 @@ module OpenFoodNetwork describe I18nConfig do + before do + 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") + end + context "in default test configuration" do before do allow(ENV).to receive(:[]).with("LOCALE").and_return("en")