Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test the menu bar
  • Loading branch information
kraih committed Nov 3, 2015
1 parent 9bb0716 commit cc74c0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions t/mojolicious/exception_lite_app.t
Expand Up @@ -137,11 +137,11 @@ $t->get_ok('/logger?level=fatal&message=five')->status_is(200)
->content_is('fatal: five');
like $log, qr/fatal:five/, 'right result';

# "not_found.development.html.ep" route suggestion
$t->get_ok('/does_not_exist')->status_is(404)
# "debug.html.ep" route suggestion
$t->get_ok('/does_not_exist')->status_is(404)->element_exists('#mojobar')
->content_like(qr!/does_not_exist!);

# "not_found.development.html.ep" route suggestion
# "debug.html.ep" route suggestion
$t->post_ok('/does_not_exist')->status_is(404)
->content_like(qr!/does_not_exist!);

Expand Down
2 changes: 1 addition & 1 deletion t/mojolicious/pod_renderer_lite_app.t
Expand Up @@ -52,7 +52,7 @@ $t->get_ok('/art')->status_is(200)->text_like('h2[id="art"]' => qr/art/)
$t->get_ok('/empty')->status_is(200)->content_is('');

# Perldoc browser (Welcome)
$t->get_ok('/perldoc')->status_is(200)
$t->get_ok('/perldoc')->status_is(200)->element_exists('#mojobar')
->text_is('#TUTORIAL a:nth-of-type(2)', 'TUTORIAL')
->text_is('#GUIDES a:nth-of-type(2)', 'GUIDES')
->content_like(qr/Mojolicious guide to the galaxy/);
Expand Down

0 comments on commit cc74c0a

Please sign in to comment.