Skip to content

Commit

Permalink
fixed typo in custom test example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 3, 2014
1 parent 65db1ef commit 07a6454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -421,7 +421,7 @@ True if the last test was successful.
my ($t, $value, $desc) = @_;
$desc ||= "Location: $value";
local $Test::Builder::Level = $Test::Builder::Level + 1;
return $t->success(is($location, $t->tx->res->headers->location, $desc));
return $t->success(is($value, $t->tx->res->headers->location, $desc));
};
$t->get_ok('/')
->status_is(302)
Expand Down

0 comments on commit 07a6454

Please sign in to comment.