Files
openfoodnetwork/spec/support/i18n_error_raising.rb
2019-06-25 15:06:56 +10:00

6 lines
192 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