提交 a8f1ee59 编写于 作者: D David Heinemeier Hansson

Fix tests

上级 1c66f85e
...@@ -9,7 +9,7 @@ def setup ...@@ -9,7 +9,7 @@ def setup
end end
def test_delegates_to_i18n_setting_the_raise_option 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' translate :foo, :locale => 'en'
end end
...@@ -26,7 +26,7 @@ def test_delegates_localize_to_i18n ...@@ -26,7 +26,7 @@ def test_delegates_localize_to_i18n
def test_scoping_by_partial def test_scoping_by_partial
expects(:template).returns(stub(:path_without_format_and_extension => "people/index")) 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' translate ".foo", :locale => 'en'
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册