提交 6625000b 编写于 作者: G Godfrey Chan

Remove useless `only_path: true` in path helpers

We added a deprecation warning for these cases in aa1fadd4, so these are now
causing deprecation warnings in the test output. AFAICT, in these two cases, the
option is not integral to the purpose of the test, so they can be safely removed
上级 aa6637d1
......@@ -25,8 +25,7 @@ def test_nested_optional
path = klass.new.fun_path({:controller => :articles,
:baz => "baz",
:zot => "zot",
:only_path => true })
:zot => "zot"})
# :bar key isn't provided
assert_equal '/foo/zot', path
end
......@@ -291,7 +290,7 @@ def test_only_path
assert_equal '/brave/new/world',
controller.url_for(:controller => 'brave', :action => 'new', :id => 'world', :only_path => true)
assert_equal("/home/sweet/home/alabama", controller.home_path(:user => 'alabama', :host => 'unused', :only_path => true))
assert_equal("/home/sweet/home/alabama", controller.home_path(:user => 'alabama', :host => 'unused'))
assert_equal("/home/sweet/home/alabama", controller.home_path('alabama'))
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册