diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-18 09:14:15 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-18 09:14:15 -0700 |
commit | eb32b3659d3ead36e66efe8ef2ced126110311a4 (patch) | |
tree | 9a094954b449f9ce4f8960eb601d544a1f9314f6 /actionpack/test | |
parent | 4e7292c0262ae70d968e0732bb6fea627646feef (diff) | |
parent | cecbf5dd4d814f0bbd6a7c77a7c550c90a75cf47 (diff) | |
download | rails-eb32b3659d3ead36e66efe8ef2ced126110311a4.tar.gz rails-eb32b3659d3ead36e66efe8ef2ced126110311a4.tar.bz2 rails-eb32b3659d3ead36e66efe8ef2ced126110311a4.zip |
Merge pull request #9753 from jbarreneche/bug/render-locale-fallbacks
i18n locale fallback for localized views
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/localized_templates_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/controller/localized_templates_test.rb b/actionpack/test/controller/localized_templates_test.rb index bac1d02977..6b02eedaed 100644 --- a/actionpack/test/controller/localized_templates_test.rb +++ b/actionpack/test/controller/localized_templates_test.rb @@ -25,4 +25,13 @@ class LocalizedTemplatesTest < ActionController::TestCase ensure I18n.locale = old_locale end + + def test_use_fallback_locales + I18n.locale = :"de-AT" + I18n.backend.class.send(:include, I18n::Backend::Fallbacks) + I18n.fallbacks[:"de-AT"] = [:de] + + get :hello_world + assert_equal "Gutten Tag", @response.body + end end |