X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcgibin.t;h=910b5f0cfc0109f83bdcdfddd76ac73ae5ace23c;hb=f410f043b41cc59d08cb1aa015378888c8fe88b7;hp=0ec5e9676a9350f341a27a9e0534f13c7e32c5cc;hpb=fbaba9ddb929f1437ddaec1f24019f38beb99c75;p=catagits%2FCatalyst-Controller-WrapCGI.git diff --git a/t/cgibin.t b/t/cgibin.t index 0ec5e96..910b5f0 100644 --- a/t/cgibin.t +++ b/t/cgibin.t @@ -6,7 +6,7 @@ use warnings; use FindBin '$Bin'; use lib "$Bin/lib"; -use Test::More tests => 7; +use Test::More tests => 8; use Catalyst::Test 'TestCGIBin'; use HTTP::Request::Common; @@ -50,10 +50,14 @@ $response = request POST '/cgihandler/mtfnpy', [ is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File through a forward via cgi_action'); -$response = request '/cgi-bin/path/testdata.pl'; +$response = request '/my-bin/path/testdata.pl'; is($response->content, "testing\n", 'scripts with __DATA__ sections work'); +$response = request '/my-bin/pathinfo.pl/path/info'; +is($response->content, '/path/info', + 'PATH_INFO works'); + SKIP: { skip "Can't run shell scripts on non-*nix", 1 if $^O eq 'MSWin32' || $^O eq 'VMS';