diff --git a/spec/support/i18n_error_raising.rb b/spec/support/i18n_error_raising.rb new file mode 100644 index 0000000000..9cef014820 --- /dev/null +++ b/spec/support/i18n_error_raising.rb @@ -0,0 +1,5 @@ +# From: https://robots.thoughtbot.com/better-tests-through-internationalization + +I18n.exception_handler = lambda do |exception, locale, key, options| + raise "missing translation: #{key}" +end