diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-04 20:07:54 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-04 20:08:23 -0200 |
commit | b696dd70db651c6cb4a096dd0d5762416acd9917 (patch) | |
tree | 7b0eb91b9169c29fdc1a670373de08de704b29d9 /actionpack/test/template | |
parent | be4551f63bc3dec7e182371d25e7b9ee0e9148c4 (diff) | |
download | rails-b696dd70db651c6cb4a096dd0d5762416acd9917.tar.gz rails-b696dd70db651c6cb4a096dd0d5762416acd9917.tar.bz2 rails-b696dd70db651c6cb4a096dd0d5762416acd9917.zip |
Allow back passing :rescue_format => nil and test added
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 67d459136b..9b5c6d127c 100644 --- a/actionpack/test/template/translation_helper_test.rb +++ b/actionpack/test/template/translation_helper_test.rb @@ -40,6 +40,11 @@ class TranslationHelperTest < ActiveSupport::TestCase 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") |