aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract/translation_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/abstract/translation_test.rb')
-rw-r--r--actionpack/test/abstract/translation_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/abstract/translation_test.rb b/actionpack/test/abstract/translation_test.rb
index 99064a8b87..64cf012b75 100644
--- a/actionpack/test/abstract/translation_test.rb
+++ b/actionpack/test/abstract/translation_test.rb
@@ -36,4 +36,10 @@ class TranslationControllerTest < ActiveSupport::TestCase
I18n.stubs(:translate).with(key).returns(expected)
assert_equal expected, @controller.t(key)
end
+
+ def test_localize
+ time, expected = Time.gm(2000), 'Sat, 01 Jan 2000 00:00:00 +0000'
+ I18n.stubs(:localize).with(time).returns(expected)
+ assert_equal expected, @controller.l(time)
+ end
end