From 447b7030f856a3e1e9a08f3cc038977587420b9c Mon Sep 17 00:00:00 2001 From: Lucas Mazza Date: Tue, 29 Jul 2014 18:27:34 -0300 Subject: [PATCH] Work around I18n recent failures. --- test/helpers/devise_helper_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/helpers/devise_helper_test.rb b/test/helpers/devise_helper_test.rb index 540e7a3a..9d39b61f 100644 --- a/test/helpers/devise_helper_test.rb +++ b/test/helpers/devise_helper_test.rb @@ -3,7 +3,9 @@ require 'test_helper' class DeviseHelperTest < ActionDispatch::IntegrationTest setup do model_labels = { models: { user: "utilisateur" } } - + # TODO: Remove this hack that fixes the I18n performance safeguards that + # breaks the custom locale. + I18n.available_locales += [:fr] I18n.backend.store_translations :fr, { errors: { messages: { not_saved: { @@ -48,4 +50,3 @@ class DeviseHelperTest < ActionDispatch::IntegrationTest assert_contain "Erreur lors de l'enregistrement de 'utilisateur': 2 erreurs" end end -