Skip to content

Commit

Permalink
Add required DB cleaner setup code
Browse files Browse the repository at this point in the history
  • Loading branch information
luisramos0 committed May 4, 2021
1 parent d2cf1d0 commit b60e19f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/lib/open_food_network/i18n_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b60e19f

Please sign in to comment.