aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2009-12-25 10:04:26 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-12-25 10:04:26 -0800
commita8f1ee59868a804ece386264385223d08e122918 (patch)
tree7567ab42059b30a633fff2cae9406cb18dbe1704 /actionpack
parent1c66f85eb6cd80053cf60889634a8c39c21b11a1 (diff)
downloadrails-a8f1ee59868a804ece386264385223d08e122918.tar.gz
rails-a8f1ee59868a804ece386264385223d08e122918.tar.bz2
rails-a8f1ee59868a804ece386264385223d08e122918.zip
Fix tests
Diffstat (limited to 'actionpack')
-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 a20f3c394c..d67d2c7911 100644
--- a/actionpack/test/template/translation_helper_test.rb
+++ b/actionpack/test/template/translation_helper_test.rb
@@ -9,7 +9,7 @@ class TranslationHelperTest < Test::Unit::TestCase
end
def test_delegates_to_i18n_setting_the_raise_option
- I18n.expects(:translate).with(:foo, :locale => 'en', :raise => true)
+ I18n.expects(:translate).with(:foo, :locale => 'en', :raise => true).returns("")
translate :foo, :locale => 'en'
end
@@ -26,7 +26,7 @@ class TranslationHelperTest < Test::Unit::TestCase
def test_scoping_by_partial
expects(:template).returns(stub(:path_without_format_and_extension => "people/index"))
- I18n.expects(:translate).with("people.index.foo", :locale => 'en', :raise => true)
+ I18n.expects(:translate).with("people.index.foo", :locale => 'en', :raise => true).returns("")
translate ".foo", :locale => 'en'
end
end