From df39511cb67a8fb4e45c1e37616f56b86dea0d3c Mon Sep 17 00:00:00 2001 From: Tema Bolshakov Date: Sat, 6 Jul 2024 19:26:36 +0200 Subject: [PATCH] Revert "Reproduce caching issue with the JSON::Util::URI.normalize_ref method" This reverts commit 401f707d383f1bbe2e834b6d035369e4c086cf70. --- test/uri_util_test.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/uri_util_test.rb b/test/uri_util_test.rb index 2c66d10f..d62482fa 100644 --- a/test/uri_util_test.rb +++ b/test/uri_util_test.rb @@ -145,9 +145,4 @@ def test_ref_addressable_uri_with_scheme_host_and_path assert_equal Addressable::URI.parse('https://foo-bar.com/hello/world#'), JSON::Util::URI.normalize_ref(uri, base) assert_equal Addressable::URI.parse('https://foo-bar.com/hello/world'), JSON::Util::URI.absolutize_ref(uri, base) end - - def test_normalize_ref_cache - assert_equal Addressable::URI.parse('http://www.example.com/#foo'), JSON::Util::URI.normalize_ref('#foo', 'http://www.example.com') - assert_equal Addressable::URI.parse('http://www.example.net/#foo'), JSON::Util::URI.normalize_ref('#foo', 'http://www.example.net') - end end