Skip to content

Commit

Permalink
another optional placeholder test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 21, 2014
1 parent 279aea0 commit f2174b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/mojolicious/pattern.t
Expand Up @@ -32,6 +32,7 @@ $pattern->defaults({name => 'foo'});
is_deeply $pattern->match('/test/123', 1), {name => 'foo'}, 'right structure';
is_deeply $pattern->match('/test/bar/123', 1), {name => 'bar'},
'right structure';
ok !$pattern->match('/test'), 'no result';
is $pattern->render, '/test/foo/123', 'right result';
is $pattern->render({name => 'bar'}), '/test/bar/123', 'right result';

Expand Down

0 comments on commit f2174b2

Please sign in to comment.