[ruby/uri] Add tests for URI::RFC{2396,3986}_Parser#inspect
https://github.com/ruby/uri/commit/d47dae2f8e
This commit is contained in:
parent
c46a4b8c7f
commit
3e27ca6047
@ -7,6 +7,11 @@ class URI::TestParser < Test::Unit::TestCase
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user