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:
filipefurtad0
2023-12-05 18:09:59 +00:00
parent b8e24918fc
commit f8f85e7fbd

View File

@@ -0,0 +1,5 @@
# frozen_string_literal: true
I18n.exception_handler = Proc.new do |exception, *_|
raise exception.to_exception
end