summaryrefslogtreecommitdiff
path: root/tests/it_url.t
diff options
context:
space:
mode:
authorNathan Gass2017-08-16 16:14:43 +0200
committerNathan Gass2017-08-16 16:14:43 +0200
commite0aec40c907801cf7f15d230a2702ac34247b16a (patch)
treef5e670dc56a5650e5197a8f19ec1d302b125cba6 /tests/it_url.t
parent30cec0d2b90d86b3e65902c419ca025916061136 (diff)
downloaditools-e0aec40c907801cf7f15d230a2702ac34247b16a.tar.gz
itools-e0aec40c907801cf7f15d230a2702ac34247b16a.tar.bz2
itools-e0aec40c907801cf7f15d230a2702ac34247b16a.zip
add test for missing protocol
Diffstat (limited to 'tests/it_url.t')
-rwxr-xr-xtests/it_url.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/it_url.t b/tests/it_url.t
index 70f0daf..83f818f 100755
--- a/tests/it_url.t
+++ b/tests/it_url.t
@@ -165,6 +165,14 @@ handle_server(
handle_server(
is(
+ it_url::get('//localhost:8000/'),
+ "Testserver root output",
+ 'it_url::get() static call with port but no protocol'
+ )
+);
+
+handle_server(
+ is(
it_url::get(['url' => 'http://localhost:8000/', 'maxlength' => 100]),
"Testserver root output",
'it_url::get() static call with port and maxlength'