Subject: | [WISH] get_not_ok method |
Under Catalyst, I like to test URLs that are *supposed* to be 404 or 403
results. So far, I've done this like:
$mech->get('http://localhost/no_such_path/');
ok(!$mech->success, 'load a non-existent page');
is($mech->status, 404, 'is a 404');
I would prefer something like:
$mech->get_not_ok($url 'load a non-existent page');
or perhaps:
$mech->get_with_status($url, 404, 'load a non-existent page');
Chris