From bf9af6ceea0388fddc2b01ae9da28fdbca1e9cd0 Mon Sep 17 00:00:00 2001 From: Will Harris Date: Wed, 29 Oct 2008 02:41:46 +0000 Subject: [PATCH] Make locale option explicit. --- .../test/template/translation_helper_test.rb | 4 ++-- 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 7b94221..1b28a59 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 -- 1.5.4-rc0.GIT