diff --git a/actionpack/test/controller/url_for_test.rb b/actionpack/test/controller/url_for_test.rb index 9222250b9cc3d1de854954ac723458d1d9c49ab6..69f8581d0dc56971110a7b77ccc46651573a8cf0 100644 --- a/actionpack/test/controller/url_for_test.rb +++ b/actionpack/test/controller/url_for_test.rb @@ -418,9 +418,9 @@ def test_named_routes_with_nil_keys 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 @@ def test_url_generation_with_array_and_hash 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