Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
a few more pattern tests
  • Loading branch information
kraih committed Dec 13, 2012
1 parent e0fabd8 commit 52919f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/mojolicious/pattern.t
Expand Up @@ -163,6 +163,8 @@ is $result->{action}, 'index', 'right value';
# Format detection disabled
$pattern = Mojolicious::Routes::Pattern->new('/test', format => 0);
$pattern->defaults({action => 'index'});
ok !$pattern->regex, 'no regex';
ok !$pattern->format_regex, 'no format regex';
$result = $pattern->match('/test', 1);
ok $pattern->regex, 'regex has been compiled on demand';
ok !$pattern->format_regex, 'no format regex';
Expand Down

0 comments on commit 52919f6

Please sign in to comment.