Skip to content

Commit

Permalink
a few more path_query tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 26, 2014
1 parent ff1cb9f commit c464b4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.86 2014-02-27

4.85 2014-02-26
- Added next_tick method to Mojo::IOLoop and Mojo::Reactor.
- Added host_port and path_query methods to Mojo::URL.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -43,7 +43,7 @@ has types => sub { Mojolicious::Types->new };
has validator => sub { Mojolicious::Validator->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.85';
our $VERSION = '4.86';

sub AUTOLOAD {
my $self = shift;
Expand Down
2 changes: 2 additions & 0 deletions t/mojo/url.t
Expand Up @@ -172,9 +172,11 @@ is "$url", 'foo:0', 'right format';

# Relative
$url = Mojo::URL->new('foo?foo=bar#23');
is $url->path_query, 'foo?foo=bar', 'right path and query';
ok !$url->is_abs, 'is not absolute';
is "$url", 'foo?foo=bar#23', 'right relative version';
$url = Mojo::URL->new('/foo?foo=bar#23');
is $url->path_query, '/foo?foo=bar', 'right path and query';
ok !$url->is_abs, 'is not absolute';
is "$url", '/foo?foo=bar#23', 'right relative version';

Expand Down

0 comments on commit c464b4e

Please sign in to comment.