Skip to content

Commit

Permalink
added tests for nested helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 8, 2014
1 parent cb7f414 commit bc434db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/mojolicious/lite_app.t
Expand Up @@ -38,6 +38,12 @@ is app->test_helper2, 'Mojolicious::Controller', 'right value';
app->test_helper3->{foo} = 'bar';
is app->test_helper3->{foo}, 'bar', 'right result';

# Nested helpers
helper 'test.helper' => sub { shift->app->controller_class };
is app->test->helper, 'Mojolicious::Controller', 'right value';
is app->build_controller->test->helper, 'Mojolicious::Controller',
'right value';

# Test renderer
app->renderer->add_handler(dead => sub { die 'renderer works!' });

Expand Down

0 comments on commit bc434db

Please sign in to comment.