diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-02-18 22:33:24 -0200 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-18 16:41:00 -0800 |
commit | af05420d6bf7cb1c337e95f9941e7db30c521d31 (patch) | |
tree | 1baaf612cd55ad5b1f3f13713907fbd6f3a2ab1d /actionpack/test/template | |
parent | ae8c384e2c07da4870dd3919321a6d49aeff3588 (diff) | |
download | rails-af05420d6bf7cb1c337e95f9941e7db30c521d31.tar.gz rails-af05420d6bf7cb1c337e95f9941e7db30c521d31.tar.bz2 rails-af05420d6bf7cb1c337e95f9941e7db30c521d31.zip |
i18n translate with arrays issue solved
Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/translation_helper_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/translation_helper_test.rb b/actionpack/test/template/translation_helper_test.rb index 4b73c44f7e..699fb2f5bc 100644 --- a/actionpack/test/template/translation_helper_test.rb +++ b/actionpack/test/template/translation_helper_test.rb @@ -18,6 +18,11 @@ class TranslationHelperTest < ActiveSupport::TestCase assert_equal expected, translate(:foo) end + def test_translation_of_an_array + I18n.expects(:translate).with(["foo", "bar"], :raise => true).returns(["foo", "bar"]) + assert_equal ["foo", "bar"], translate(["foo", "bar"]) + end + def test_delegates_localize_to_i18n @time = Time.utc(2008, 7, 8, 12, 18, 38) I18n.expects(:localize).with(@time) |