Files
openfoodnetwork/spec/support/i18n_error_raising.rb
2019-07-31 09:36:48 +01:00

6 lines
195 B
Ruby

# From: https://robots.thoughtbot.com/better-tests-through-internationalization
I18n.exception_handler = lambda do |_exception, _locale, key, _options|
raise "missing translation: #{key}"
end