Skip to content

Commit

Permalink
Add tests for URI::RFC{2396,3986}_Parser#inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Mar 4, 2021
1 parent 3b7ccfd commit d47dae2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/uri/test_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ def uri_to_ary(uri)
uri.class.component.collect {|c| uri.send(c)}
end

def test_inspect
assert_match(/URI::RFC2396_Parser/, URI::Parser.new.inspect)
assert_match(/URI::RFC3986_Parser/, URI::RFC3986_Parser.new.inspect)
end

def test_compare
url = 'http://a/b/c/d;p?q'
u0 = URI.parse(url)
Expand Down

0 comments on commit d47dae2

Please sign in to comment.