Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix tests

  • Loading branch information...
commit a8f1ee59868a804ece386264385223d08e122918 1 parent 1c66f85
@dhh dhh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/template/translation_helper_test.rb
View
4 actionpack/test/template/translation_helper_test.rb
@@ -9,7 +9,7 @@ def setup
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 @@ def test_delegates_localize_to_i18n
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
Please sign in to comment.
Something went wrong with that request. Please try again.