aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-02-19 19:57:08 -0200
committerYehuda Katz <yehudakatz@YK.local>2010-02-19 13:59:15 -0800
commite7055e5b084f5e29e9cf8dab8d56943da65ccb43 (patch)
tree41d44516b83d765ee33c6ae2fec9d62af5729c9a
parente4b910f6a37fa0eb02b0545e7320cfe4d7ff2c04 (diff)
downloadrails-e7055e5b084f5e29e9cf8dab8d56943da65ccb43.tar.gz
rails-e7055e5b084f5e29e9cf8dab8d56943da65ccb43.tar.bz2
rails-e7055e5b084f5e29e9cf8dab8d56943da65ccb43.zip
i18n translate with arrays issue solved
-rw-r--r--actionpack/test/template/translation_helper_test.rb5
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"])