From c7a036c2b60270fcf9d2a397ff0bbfc3a29c464e Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 22 Mar 2021 11:17:46 +0900 Subject: [PATCH] Revert "Passing in a Hash instance as non-kwargs parameters has to be curly braced now" This reverts commit d2f4541f126001e029078cc48a3a481e23ae3ed9. It should work without curly braces. See also: #41198, #41206, 81d90d81d0ee1fc1a649ab705119a71f2d04c8a2. --- actionview/test/template/url_helper_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index b37c64afa4..5f7866490b 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -604,13 +604,13 @@ class UrlHelperTest < ActiveSupport::TestCase def test_current_page_with_escaped_params @request = request_for_url("/category/administra%c3%a7%c3%a3o") - assert current_page?({ controller: "foo", action: "category", category: "administração" }) + assert current_page?(controller: "foo", action: "category", category: "administração") end def test_current_page_with_escaped_params_with_different_encoding @request = request_for_url("/") @request.stub(:path, (+"/category/administra%c3%a7%c3%a3o").force_encoding(Encoding::ASCII_8BIT)) do - assert current_page?({ controller: "foo", action: "category", category: "administração" }) + assert current_page?(controller: "foo", action: "category", category: "administração") assert current_page?("http://www.example.com/category/administra%c3%a7%c3%a3o") end end @@ -618,7 +618,7 @@ class UrlHelperTest < ActiveSupport::TestCase def test_current_page_with_double_escaped_params @request = request_for_url("/category/administra%c3%a7%c3%a3o?callback_url=http%3a%2f%2fexample.com%2ffoo") - assert current_page?({ controller: "foo", action: "category", category: "administração", callback_url: "http://example.com/foo" }) + assert current_page?(controller: "foo", action: "category", category: "administração", callback_url: "http://example.com/foo") end def test_current_page_with_trailing_slash