AC::Base#url_for is a public method

This commit is contained in:
Akira Matsuda 2020-09-16 12:06:50 +09:00
parent d41939a678
commit 666897a025
1 changed files with 3 additions and 3 deletions

View File

@ -418,9 +418,9 @@ module AbstractController
controller = kls.new
params = { action: :index, controller: :posts, format: :xml }
assert_equal("http://www.basecamphq.com/posts.xml", controller.send(:url_for, params))
assert_equal("http://www.basecamphq.com/posts.xml", controller.url_for(params))
params[:format] = nil
assert_equal("http://www.basecamphq.com/", controller.send(:url_for, params))
assert_equal("http://www.basecamphq.com/", controller.url_for(params))
end
end
@ -472,7 +472,7 @@ module AbstractController
controller = kls.new
assert_equal("http://www.basecamphq.com/admin/posts/new?param=value",
controller.send(:url_for, [:new, :admin, :post, { param: "value" }])
controller.url_for([:new, :admin, :post, { param: "value" }])
)
end
end