Skip to content

Commit

Permalink
Fix example (closes #274)
Browse files Browse the repository at this point in the history
  • Loading branch information
amenonsen committed Jan 28, 2012
1 parent 1f36f5e commit 5df222d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -290,7 +290,8 @@ on L<Mojo::DOM>.
require "$FindBin::Bin/../myapp.pl";

# Allow 302 redirect responses
my $t = Test::Mojo->new->max_redirects(1);
my $t = Test::Mojo->new;
$t->ua->max_redirects(1);

# Test if the HTML login form exists
$t->get_ok('/')
Expand Down

0 comments on commit 5df222d

Please sign in to comment.