Skip to content

Commit

Permalink
add a test for non development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Nov 28, 2016
1 parent 4a99b83 commit 8f9a555
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/mojolicious/app.t
Expand Up @@ -449,10 +449,15 @@ $t->get_ok('/just/some/template')->status_is(200)
->header_is(Server => 'Mojolicious (Perl)')
->content_is("Development template with high precedence.\n");

# Check develpment mode log level
# Check default development mode log level
my $app = Mojolicious->new;
is $app->log->level, 'debug', 'right log level';

# Check non-development mode log level
$app = Mojolicious->new;
$app->mode('test');
is $app->log->level, 'info', 'right log level';

# Make sure we can override attributes with constructor arguments
$app = MojoliciousTest->new(mode => 'test');
is $app->mode, 'test', 'right mode';
Expand Down

0 comments on commit 8f9a555

Please sign in to comment.