diff options
Diffstat (limited to 'test/it_url.t')
-rwxr-xr-x | test/it_url.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/it_url.t b/test/it_url.t index 5f2d1d0..2e7d4f2 100755 --- a/test/it_url.t +++ b/test/it_url.t @@ -280,6 +280,14 @@ $output = handle_server( $output = handle_server( is( + it_url::get(['url' => "http://$host/not_found_with_body", 'it_error' => false]), + false, + 'it_url::get() on 404 with body and default for body_on_fail' + ) +); + +$output = handle_server( + is( it::filter_keys(it_url::get(['url' => "http://$host/not_found_with_body", 'body_on_fail' => false, 'it_error' => false, 'assoc' => true]), 'status,data'), ['status' => 404, 'data' => null], 'it_url::get() on 404 with body, body_on_fail and assoc' |