Permalink
Browse files

i18n translate with arrays issue solved

  • Loading branch information...
1 parent e4b910f commit e7055e5b084f5e29e9cf8dab8d56943da65ccb43 @spastorino spastorino committed with Yehuda Katz Feb 19, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/template/translation_helper_test.rb
@@ -17,6 +17,11 @@ def test_returns_missing_translation_message_wrapped_into_span
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"])

1 comment on commit e7055e5

@spastorino
Member

This commit was for 2-3-stable

Please sign in to comment.