test/rubygems/test_gem_request.rb in rubygems-update-3.4.20 vs test/rubygems/test_gem_request.rb in rubygems-update-3.4.21

- old
+ new

@@ -110,12 +110,12 @@ assert cert_store.verify CHILD_CERT end def test_configure_connection_for_https_ssl_ca_cert - ssl_ca_cert, Gem.configuration.ssl_ca_cert = - Gem.configuration.ssl_ca_cert, CA_CERT_FILE + ssl_ca_cert = Gem.configuration.ssl_ca_cert + Gem.configuration.ssl_ca_cert = CA_CERT_FILE connection = Net::HTTP.new "localhost", 443 request = Class.new(Gem::Request) do def self.get_cert_files @@ -212,11 +212,11 @@ end c end auth_header = conn.payload["Authorization"] - assert_equal "Basic #{base64_encode64('user:pass')}".strip, auth_header + assert_equal "Basic #{base64_encode64("user:pass")}".strip, auth_header assert_includes @ui.output, "GET https://user:REDACTED@example.rubygems/specs.#{Gem.marshal_version}" end def test_fetch_basic_auth_encoded Gem.configuration.verbose = :really @@ -229,11 +229,11 @@ end c end auth_header = conn.payload["Authorization"] - assert_equal "Basic #{base64_encode64('user:{DEScede}pass')}".strip, auth_header + assert_equal "Basic #{base64_encode64("user:{DEScede}pass")}".strip, auth_header assert_includes @ui.output, "GET https://user:REDACTED@example.rubygems/specs.#{Gem.marshal_version}" end def test_fetch_basic_oauth_encoded Gem.configuration.verbose = :really @@ -246,10 +246,10 @@ end c end auth_header = conn.payload["Authorization"] - assert_equal "Basic #{base64_encode64('{DEScede}pass:x-oauth-basic')}".strip, auth_header + assert_equal "Basic #{base64_encode64("{DEScede}pass:x-oauth-basic")}".strip, auth_header assert_includes @ui.output, "GET https://REDACTED:x-oauth-basic@example.rubygems/specs.#{Gem.marshal_version}" end def test_fetch_head uri = Gem::Uri.new(URI.parse "#{@gem_repo}/specs.#{Gem.marshal_version}")