diff options
author | Vipul A M <vipulnsward@gmail.com> | 2017-06-15 01:06:04 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2017-06-15 01:06:04 +0530 |
commit | ff3c06f718a80c5d943e93e3cb1c784911d5c423 (patch) | |
tree | 034f9e3395af612d4e4073aec81227f46a5fc284 /actionpack/test/abstract | |
parent | db7398f79f4dc30cefd6310b538073ec4a2574cc (diff) | |
download | rails-ff3c06f718a80c5d943e93e3cb1c784911d5c423.tar.gz rails-ff3c06f718a80c5d943e93e3cb1c784911d5c423.tar.bz2 rails-ff3c06f718a80c5d943e93e3cb1c784911d5c423.zip |
Allow translate default option to accept an array similar to i18n.t. Fixes #29441
Diffstat (limited to 'actionpack/test/abstract')
-rw-r--r-- | actionpack/test/abstract/translation_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/abstract/translation_test.rb b/actionpack/test/abstract/translation_test.rb index 0c4071df8d..4893144905 100644 --- a/actionpack/test/abstract/translation_test.rb +++ b/actionpack/test/abstract/translation_test.rb @@ -62,6 +62,7 @@ module AbstractController def test_default_translation @controller.stub :action_name, :index do assert_equal "bar", @controller.t("one.two") + assert_equal "baz", @controller.t(".twoz", default: ["baz", :twoz]) end end |