lil cleanup
This commit is contained in:
parent
c53041b906
commit
a6cc0239ec
|
@ -8,10 +8,10 @@ use Hyperlink-Redirect::Helpers;
|
||||||
|
|
||||||
plan 2;
|
plan 2;
|
||||||
|
|
||||||
ok fix-protocol("seriousbusiness.international") eq "http://seriousbusiness.international", \
|
ok fix-protocol("seriousbusiness.international") eq "http://seriousbusiness.international",
|
||||||
"fix-protocol fixes bare domains correctly"\
|
"fix-protocol fixes bare domains correctly"
|
||||||
or diag "\nfix-protocol should return the same string with 'http://' prefixed if protocol isn't specified";
|
or diag "\nfix-protocol should return the same string with 'http://' prefixed if protocol isn't specified";
|
||||||
|
|
||||||
ok fix-protocol("https://www.seriousbusiness.international") eq "https://www.seriousbusiness.international",\
|
ok fix-protocol("https://www.seriousbusiness.international") eq "https://www.seriousbusiness.international",
|
||||||
"fix-protocol does not mangle correctly formatted domains"\
|
"fix-protocol does not mangle correctly formatted domains"
|
||||||
or diag "\nThe URL should remain unchanged when the protocol is specified";
|
or diag "\nThe URL should remain unchanged when the protocol is specified";
|
||||||
|
|
Loading…
Reference in a new issue