aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJuan Barreneche <snipperme@gmail.com>2013-03-14 18:02:20 -0300
committerJuan Barreneche <snipperme@gmail.com>2013-03-14 18:02:20 -0300
commitce755697fc926b7fa5c783a27ca814574045c961 (patch)
tree276b32e41b91871da8a86dbf85ae83608cd09ddd /actionpack/test/controller
parent3d4d7420ae43a35ae01343ced6d7c685d0b667ee (diff)
downloadrails-ce755697fc926b7fa5c783a27ca814574045c961.tar.gz
rails-ce755697fc926b7fa5c783a27ca814574045c961.tar.bz2
rails-ce755697fc926b7fa5c783a27ca814574045c961.zip
Extract hardcoded lists to Redo::RestaurantsList
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/localized_templates_test.rb9
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 41ff2f3809..a5fc3f614a 100644
--- a/actionpack/test/controller/localized_templates_test.rb
+++ b/actionpack/test/controller/localized_templates_test.rb
@@ -19,4 +19,13 @@ class LocalizedTemplatesTest < ActionController::TestCase
get :hello_world
assert_equal "Hello World", @response.body
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 \ No newline at end of file