Fixed rendering of URIs with port number; moved match.rb to test_helper (where it belongs)

This commit is contained in:
Alexey Verkhovsky 2005-01-16 16:04:45 +00:00
parent 832cfdf605
commit 178f3f53ee
4 changed files with 35 additions and 19 deletions

View file

@ -89,4 +89,14 @@ class URITest < Test::Unit::TestCase
:path => '/~mail2minh/SonyEricssonP80xPlatform.sis'
)
end
def test_uri_with_port
match(
URIChunk,
"This text contains a URL http://someplace.org:8080/~person/stuff.cgi?arg=val, doesn't it?",
:scheme => 'http', :host => 'someplace.org', :port => '8080', :path => '/~person/stuff.cgi',
:query => 'arg=val'
)
end
end