Skip to content

Commit

Permalink
make sure to_route always adds a leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 8, 2013
1 parent c1d5d44 commit 13c9c8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/mojo/path.t
Expand Up @@ -208,6 +208,7 @@ $path->merge('baz/yada');
is "$path", 'foo/baz/yada', 'right path';
ok !$path->leading_slash, 'no leading slash';
ok !$path->trailing_slash, 'no trailing slash';
is $path->to_route, '/foo/baz/yada', 'right route';

# Empty path elements
$path = Mojo::Path->new('//');
Expand Down

0 comments on commit 13c9c8b

Please sign in to comment.