From 0e0261b52e54ffcf9757819d41c85a314d64770c Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Wed, 15 Aug 2018 18:00:45 -0300 Subject: Fix obsoleted method URI.unescape in activesupport/test --- activesupport/test/core_ext/object/to_query_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/test/core_ext/object/to_query_test.rb b/activesupport/test/core_ext/object/to_query_test.rb index b0b7ef0913..561dadbbcf 100644 --- a/activesupport/test/core_ext/object/to_query_test.rb +++ b/activesupport/test/core_ext/object/to_query_test.rb @@ -88,7 +88,7 @@ class ToQueryTest < ActiveSupport::TestCase } expected = "foo[contents][][name]=gorby&foo[contents][][id]=123&foo[contents][][name]=puff&foo[contents][][d]=true" - assert_equal expected, URI.decode(params.to_query) + assert_equal expected, URI.decode_www_form_component(params.to_query) end private -- cgit v1.2.3