summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Niknam <mhmd.niknam@gmail.com>2021-08-22 19:55:40 +1000
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commita508693f06aefe30d2d83c9617541722ba6c8d66 (patch)
tree069944abf917f9c8e1187ab17ea83235efc13485 /test
parentfafd9d280a4ce57c2868a866ae06ba006671bf5a (diff)
[rubygems/rubygems] Remove defensive guards
https://github.com/rubygems/rubygems/commit/dba130cd80
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_printable_uri.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/rubygems/test_gem_printable_uri.rb b/test/rubygems/test_gem_printable_uri.rb
index c227fe683a..c9127a42df 100644
--- a/test/rubygems/test_gem_printable_uri.rb
+++ b/test/rubygems/test_gem_printable_uri.rb
@@ -63,10 +63,6 @@ class TestPrintableUri < Gem::TestCase
assert_equal nil, Gem::PrintableUri.parse_uri("https://www.example.com").original_password
end
- def test_original_password_with_invalid_uri
- assert_equal nil, Gem::PrintableUri.parse_uri("https://www.example.com:80index").original_password
- end
-
def test_original_password_with_empty_uri_object
assert_equal nil, Gem::PrintableUri.parse_uri(URI("")).original_password
end
@@ -75,10 +71,6 @@ class TestPrintableUri < Gem::TestCase
assert_equal "pass", Gem::PrintableUri.parse_uri(URI("https://user:pass@example.com")).original_password
end
- def test_original_password_with_other_objects
- assert_equal nil, Gem::PrintableUri.parse_uri(Object.new).original_password
- end
-
def test_to_s_with_user_pass
assert_equal "https://user:REDACTED@example.com", Gem::PrintableUri.parse_uri("https://user:pass@example.com").to_s
end