Skip to content

Commit

Permalink
test rendering a slash with format
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 17, 2014
1 parent a4eab87 commit cf4bd09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/mojolicious/pattern.t
Expand Up @@ -66,6 +66,7 @@ $pattern->defaults({action => 'index'});
ok !$pattern->match('/test/foo/bar'), 'no result';
is_deeply $pattern->match('/'), {action => 'index'}, 'right structure';
is $pattern->render, '', 'right result';
is $pattern->render({format => 'txt'}, 1), '.txt', 'right result';

# Regex in pattern
$pattern = Mojolicious::Routes::Pattern->new('/test/(controller)/:action/(id)',
Expand Down

0 comments on commit cf4bd09

Please sign in to comment.