From 24c17619879eba89a5e33f7f2308c8e5c5da53d6 Mon Sep 17 00:00:00 2001 From: Simon Claessens Date: Mon, 24 Aug 2026 12:02:36 +0200 Subject: [PATCH] fix: replace CGI.parse, removed in Ruby 4.0, with URI.decode_www_form --- test/unit/authentication_endpoints_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/authentication_endpoints_test.rb b/test/unit/authentication_endpoints_test.rb index decf86386..ace27f40e 100644 --- a/test/unit/authentication_endpoints_test.rb +++ b/test/unit/authentication_endpoints_test.rb @@ -477,10 +477,10 @@ def test_par_authorization_url_builds_correctly url = @client_secret_instance.send(:par_authorization_url, request_uri) parsed = URI.parse(url.to_s) - params = CGI.parse(parsed.query) + params = URI.decode_www_form(parsed.query).to_h - assert_equal @client_id, params["client_id"].first - assert_equal request_uri, params["request_uri"].first + assert_equal @client_id, params["client_id"] + assert_equal request_uri, params["request_uri"] assert_equal "/authorize", parsed.path assert_equal @domain, parsed.host end