From 666897a0258ee4025405869afdee00144d021759 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 16 Sep 2020 12:06:50 +0900 Subject: [PATCH] AC::Base#url_for is a public method --- actionpack/test/controller/url_for_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actionpack/test/controller/url_for_test.rb b/actionpack/test/controller/url_for_test.rb index 9222250b9c..69f8581d0d 100644 --- a/actionpack/test/controller/url_for_test.rb +++ b/actionpack/test/controller/url_for_test.rb @@ -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