From c21436cb353f8194db647bde2a5ef434eb3dcb2a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 25 Jun 2023 23:58:12 +0900 Subject: [ruby/uri] Fix host part in relative referece #83 In relative referece, host part can be ommitted but can not be empty. https://github.com/ruby/uri/commit/2980f0ba02 --- test/uri/test_generic.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb index 3897c3d6ee..e6619373c6 100644 --- a/test/uri/test_generic.rb +++ b/test/uri/test_generic.rb @@ -977,6 +977,10 @@ class URI::TestGeneric < Test::Unit::TestCase end end + def test_split + assert_equal [nil, nil, nil, nil, nil, "", nil, nil, nil], URI.split("//") + end + class CaseInsensitiveEnv def initialize(h={}) @h = {} -- cgit v1.2.3