mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Adds I18n exception handler as test initializer
As per code review, we follow this approach https://sikac.hu/missing-translations-keys-gotta-catch-em-all-3aa8d2ead8bd
This commit is contained in:
5
config/initializers/test.rb
Normal file
5
config/initializers/test.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
I18n.exception_handler = Proc.new do |exception, *_|
|
||||
raise exception.to_exception
|
||||
end
|
||||
Reference in New Issue
Block a user