Fixed rendering of URIs with port number; moved match.rb to test_helper (where it belongs)
This commit is contained in:
parent
832cfdf605
commit
178f3f53ee
4 changed files with 35 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue