Skip to content

Commit

Permalink
better test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 15, 2011
1 parent 55cc262 commit 6225983
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions t/mojolicious/lite_app.t
Expand Up @@ -10,7 +10,7 @@ BEGIN {
$ENV{MOJO_MODE} = 'development';
}

use Test::More tests => 902;
use Test::More tests => 903;

# Pollution
123 =~ m/(\d+)/;
Expand Down Expand Up @@ -584,6 +584,7 @@ get '/redirect_callback' => sub {
Mojo::IOLoop->defer(
sub {
$self->res->code(301);
$self->res->body('Whatever!');
$self->redirect_to('http://127.0.0.1/foo');
}
);
Expand Down Expand Up @@ -1567,8 +1568,8 @@ $t->get_ok('/redirect_no_render')->status_is(302)
$t->get_ok('/redirect_callback')->status_is(301)
->header_is(Server => 'Mojolicious (Perl)')
->header_is('X-Powered-By' => 'Mojolicious (Perl)')
->header_is('Content-Length' => 0)
->header_is(Location => 'http://127.0.0.1/foo');
->header_is('Content-Length' => 9)
->header_is(Location => 'http://127.0.0.1/foo')->content_is('Whatever!');

# GET /static_render
$t->get_ok('/static_render')->status_is(200)
Expand Down

0 comments on commit 6225983

Please sign in to comment.