Skip to content

Commit

Permalink
a few more router tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 8, 2013
1 parent 749f0b5 commit 5f69d06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/mojolicious/app.t
Expand Up @@ -49,7 +49,9 @@ is $t->app->static->file('hello.txt')->slurp,
is $t->app->moniker, 'mojolicious_test', 'right moniker';

# Hidden controller methods and attributes
$t->app->routes->hide('bar');
ok !$t->app->routes->is_hidden('foo'), 'not hidden';
ok $t->app->routes->is_hidden('bar'), 'is hidden';
ok $t->app->routes->is_hidden('_foo'), 'is hidden';
ok $t->app->routes->is_hidden('AUTOLOAD'), 'is hidden';
ok $t->app->routes->is_hidden('DESTROY'), 'is hidden';
Expand Down

0 comments on commit 5f69d06

Please sign in to comment.