Skip to content

Commit

Permalink
Update spec/lib/open_food_network/i18n_config_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Yorkley authored Jun 1, 2021
1 parent 913ba1c commit 460830a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec/lib/open_food_network/i18n_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
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
Expand Down

0 comments on commit 460830a

Please sign in to comment.