summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Niknam <mhmd.niknam@gmail.com>2021-08-23 23:51:07 +1000
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commitaa898b420676633cf36f95b8f97b10d6cac59141 (patch)
tree78a8e10dce22c13948250675d82198bd8e0924fd /test
parent7067005f2314b8c4927d53f37825941fe43a66c3 (diff)
[rubygems/rubygems] Remove @credential_redacted instance variable
https://github.com/rubygems/rubygems/commit/c3bb52eb5c
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_printable_uri.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/rubygems/test_gem_printable_uri.rb b/test/rubygems/test_gem_printable_uri.rb
index c9127a42df..9f49d6538c 100644
--- a/test/rubygems/test_gem_printable_uri.rb
+++ b/test/rubygems/test_gem_printable_uri.rb
@@ -23,34 +23,6 @@ class TestPrintableUri < Gem::TestCase
assert_equal false, Gem::PrintableUri.parse_uri("https://www.example.com:80index").valid_uri?
end
- def test_credential_redacted_with_user_pass
- assert_equal true, Gem::PrintableUri.parse_uri("https://user:pass@example.com").credential_redacted?
- end
-
- def test_credential_redacted_with_token
- assert_equal true, Gem::PrintableUri.parse_uri("https://token@example.com").credential_redacted?
- end
-
- def test_credential_redacted_with_user_x_oauth_basic
- assert_equal true, Gem::PrintableUri.parse_uri("https://token:x-oauth-basic@example.com").credential_redacted?
- end
-
- def test_credential_redacted_without_credential
- assert_equal false, Gem::PrintableUri.parse_uri("https://www.example.com").credential_redacted?
- end
-
- def test_credential_redacted_with_empty_uri_object
- assert_equal false, Gem::PrintableUri.parse_uri(URI("")).credential_redacted?
- end
-
- def test_credential_redacted_with_valid_uri_object
- assert_equal true, Gem::PrintableUri.parse_uri(URI("https://user:pass@example.com")).credential_redacted?
- end
-
- def test_credential_redacted_with_other_objects
- assert_equal false, Gem::PrintableUri.parse_uri(Object.new).credential_redacted?
- end
-
def test_original_password_user_pass
assert_equal "pass", Gem::PrintableUri.parse_uri("https://user:pass@example.com").original_password
end