diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-02-19 19:57:08 -0200 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-19 13:59:15 -0800 |
commit | e7055e5b084f5e29e9cf8dab8d56943da65ccb43 (patch) | |
tree | 41d44516b83d765ee33c6ae2fec9d62af5729c9a /actionpack | |
parent | e4b910f6a37fa0eb02b0545e7320cfe4d7ff2c04 (diff) | |
download | rails-e7055e5b084f5e29e9cf8dab8d56943da65ccb43.tar.gz rails-e7055e5b084f5e29e9cf8dab8d56943da65ccb43.tar.bz2 rails-e7055e5b084f5e29e9cf8dab8d56943da65ccb43.zip |
i18n translate with arrays issue solved
Diffstat (limited to 'actionpack')
-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 699fb2f5bc..1a9c9fa35c 100644 --- a/actionpack/test/template/translation_helper_test.rb +++ b/actionpack/test/template/translation_helper_test.rb @@ -17,6 +17,11 @@ class TranslationHelperTest < ActiveSupport::TestCase expected = '<span class="translation_missing">en, foo</span>' 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_translation_of_an_array I18n.expects(:translate).with(["foo", "bar"], :raise => true).returns(["foo", "bar"]) |