summaryrefslogtreecommitdiff
path: root/test/it_url.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/it_url.t')
-rwxr-xr-xtest/it_url.t13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/it_url.t b/test/it_url.t
index b6ef5ba..5f2d1d0 100755
--- a/test/it_url.t
+++ b/test/it_url.t
@@ -192,6 +192,14 @@ handle_server(
handle_server(
is(
+ it::filter_keys(it_url::get(['url' => "http://$host/", 'maxlength' => 5, 'it_error' => false, 'assoc' => true]), 'status,data'),
+ ['status' => 204, 'data' => null],
+ 'it_url::get() static call with port and too small maxlength'
+ )
+);
+
+handle_server(
+ is(
it_url::get("http://$host/temp_redirect"),
"Testserver output after temporary redirect",
'it_url::get() follows temproary redirect'
@@ -263,8 +271,9 @@ $output = handle_server(
);
$output = handle_server(
- ok(
- !it_url::get(['url' => "http://$host/not_found_with_body", 'body_on_fail' => false, 'it_error' => false]),
+ is(
+ it_url::get(['url' => "http://$host/not_found_with_body", 'body_on_fail' => false, 'it_error' => false]),
+ false,
'it_url::get() on 404 with body and body_on_fail'
)
);