Skip to content

Commit d47dae2

Browse files
committed
Add tests for URI::RFC{2396,3986}_Parser#inspect
1 parent 3b7ccfd commit d47dae2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/uri/test_parser.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ def uri_to_ary(uri)
77
uri.class.component.collect {|c| uri.send(c)}
88
end
99

10+
def test_inspect
11+
assert_match(/URI::RFC2396_Parser/, URI::Parser.new.inspect)
12+
assert_match(/URI::RFC3986_Parser/, URI::RFC3986_Parser.new.inspect)
13+
end
14+
1015
def test_compare
1116
url = 'http://a/b/c/d;p?q'
1217
u0 = URI.parse(url)

0 commit comments

Comments
 (0)