Skip to content

Commit

Permalink
a few more URL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 24, 2012
1 parent b473b78 commit 95354dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/mojo/url.t
Expand Up @@ -104,8 +104,10 @@ is $url->to_rel, 'foo?foo=bar#23', 'right relative version';
# Relative without scheme
$url = Mojo::URL->new('//localhost/23/');
ok !$url->is_abs, 'is not absolute';
is $url->host, 'localhost', 'right host';
is $url->path, '/23/', 'right path';
is $url->scheme, undef, 'no scheme';
is $url->protocol, '', 'no protocol';
is $url->host, 'localhost', 'right host';
is $url->path, '/23/', 'right path';
is "$url", '//localhost/23/', 'right relative version';
is $url->to_abs(Mojo::URL->new('http://')), 'http://localhost/23/',
'right absolute version';
Expand Down

0 comments on commit 95354dd

Please sign in to comment.