C::C::WrapCGI - add PATH_INFO support
[catagits/Catalyst-Controller-WrapCGI.git] / t / wrap-cgi.t
index fbf5891..2477c7d 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use FindBin '$Bin';
 use lib "$Bin/lib";
 
-use Test::More tests => 1;
+use Test::More tests => 2;
 
 use Catalyst::Test 'TestApp';
 use HTTP::Request::Common;
@@ -17,3 +17,7 @@ my $response = request POST '/cgi-bin/test.cgi', [
 ];
 
 is($response->content, 'foo:bar bar:baz', 'POST to CGI');
+
+$response = request '/cgi-bin/test_pathinfo.cgi/path/info';
+
+is($response->content, '/path/info', 'PATH_INFO is correct');