Skip to content

Commit

Permalink
Revert "Reproduce caching issue with the JSON::Util::URI.normalize_re…
Browse files Browse the repository at this point in the history
…f method"

This reverts commit 401f707.
  • Loading branch information
bolshakov committed Jul 6, 2024
1 parent 022e25c commit df39511
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/uri_util_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit df39511

Please sign in to comment.