1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Work around I18n recent failures.

This commit is contained in:
Lucas Mazza 2014-07-29 18:27:34 -03:00
parent 3cd6e650ef
commit 447b7030f8

View file

@ -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