Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test route endpoint
  • Loading branch information
kraih committed Nov 8, 2012
1 parent 3b6312f commit ea0bc22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/mojolicious/routes.t
Expand Up @@ -193,6 +193,7 @@ is $second->render('', {}), '/target/second', 'right result';
my $c = Mojolicious::Controller->new;
my $m = Mojolicious::Routes::Match->new(GET => '/clean');
$m->match($r, $c);
is $m->endpoint->name, 'very_clean', 'right name';
is $m->stack->[0]{clean}, 1, 'right value';
is $m->stack->[0]{something}, undef, 'no value';
is $m->path_for, '/clean', 'right path';
Expand Down

0 comments on commit ea0bc22

Please sign in to comment.