Skip to content

Commit

Permalink
tweak example
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Jan 3, 2014
1 parent 07a6454 commit 75df849
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($value, $t->tx->res->headers->location, $desc));
return $t->success(is($t->tx->res->headers->location, $value, $desc));
};
$t->get_ok('/')
->status_is(302)
Expand Down

0 comments on commit 75df849

Please sign in to comment.