mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Merge pull request #7255 from mkllnk/fail-on-translations
Raise errors in specs with missing translations
This commit is contained in:
@@ -21,6 +21,10 @@ describe "i18n" do
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
allow(ActionView::Base).
|
||||
to receive(:raise_on_missing_translations).
|
||||
and_return(false)
|
||||
end
|
||||
|
||||
it "translates within the spree scope" do
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# From: https://robots.thoughtbot.com/better-tests-through-internationalization
|
||||
|
||||
I18n.exception_handler = lambda do |_exception, _locale, key, _options|
|
||||
raise "missing translation: #{key}"
|
||||
end
|
||||
Reference in New Issue
Block a user