Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a test for passing :rescue_format => nil to #translate

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information...
commit ff95f858d64f5d8cb578b4b096b5a33d49063d20 1 parent 1452571
@spastorino spastorino authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/template/translation_helper_test.rb
View
5 actionpack/test/template/translation_helper_test.rb
@@ -40,6 +40,11 @@ def test_returns_missing_translation_message_wrapped_into_span
assert_equal expected, translate(:"translations.missing")
end
+ def test_returns_missing_translation_message_using_nil_as_rescue_format
+ expected = 'translation missing: en.translations.missing'
+ assert_equal expected, translate(:"translations.missing", :rescue_format => nil)
+ end
+
def test_translation_returning_an_array
expected = %w(foo bar)
assert_equal expected, translate(:"translations.array")
Please sign in to comment.
Something went wrong with that request. Please try again.