aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/translation_helper_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-10-29 10:51:56 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-10-29 10:51:56 +0100
commit4dbfe18b37ad4fa95eecb9082a446c798e84e499 (patch)
tree885701c845a0e3589f1b565f0ee610faf792e447 /actionpack/test/template/translation_helper_test.rb
parent4ad5aa9a39a83863331a7665407dac475855765b (diff)
downloadrails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.tar.gz
rails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.tar.bz2
rails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.zip
Proper API for reloading translations
Diffstat (limited to 'actionpack/test/template/translation_helper_test.rb')
-rw-r--r--actionpack/test/template/translation_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/translation_helper_test.rb b/actionpack/test/template/translation_helper_test.rb
index 7b94221ec0..1b28a59288 100644
--- a/actionpack/test/template/translation_helper_test.rb
+++ b/actionpack/test/template/translation_helper_test.rb
@@ -10,8 +10,8 @@ class TranslationHelperTest < Test::Unit::TestCase
end
def test_delegates_to_i18n_setting_the_raise_option
- I18n.expects(:translate).with(:foo, 'en-US', :raise => true)
- translate :foo, 'en-US'
+ I18n.expects(:translate).with(:foo, :locale => 'en-US', :raise => true)
+ translate :foo, :locale => 'en-US'
end
def test_returns_missing_translation_message_wrapped_into_span