kraih/mojo — Issue #276: Test::Mojo _request_ok  broken
Author: bjones
Created: 2012-01-30 16:35:48+00:00
State: open

On error (pretend 500 internal server error), $ok ends up a true value of 500 instead of a false value.

Suggest fixing it something like this:

my $ok = ($error || $code) ? 0 : 1;
Test::More::diag $error if !($ok);
Test::More::ok $ok, $desc;