Skip to content

Commit

Permalink
add spec for URI#parse
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-Mozi committed May 10, 2023
1 parent aca4695 commit 9705b55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/uri/parse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,10 @@
URI.parse('http://a_b:80/').host.should == "a_b"
URI.parse('http://a_b/').host.should == "a_b"
end

ruby_version_is "3.2" do
it "returns empty string in host if is not valid" do
URI.parse('http:////sth.com/path').host.should == ''
end
end
end

0 comments on commit 9705b55

Please sign in to comment.