Navigation Menu

Skip to content

Commit

Permalink
test both endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 14, 2015
1 parent 3bec2b5 commit e742b5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/mojolicious/routes.t
Expand Up @@ -936,6 +936,7 @@ $m->find($c => {method => 'GET', path => '/similar/too'});
is_deeply $m->stack,
[{}, {controller => 'similar', action => 'get', 'something' => 'too'}],
'right structure';
is $m->endpoint->suggested_method, 'GET', 'right method';
$m = Mojolicious::Routes::Match->new(root => $r);
$m->find($c => {method => 'PATCH', path => '/similar/too'});
is_deeply $m->stack, [{}, {controller => 'similar', action => 'post'}],
Expand Down

0 comments on commit e742b5b

Please sign in to comment.