X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-WrapCGI.git;a=blobdiff_plain;f=t%2Fcgibin_root_path.t;fp=t%2Fcgibin_root_path.t;h=20c0e628169d02a6136f8650145e494e7fae2ba1;hp=7a175953323e6fe1147ce281f339def583c25056;hb=f050749c80a961663b868104f4b4149bf854a027;hpb=7d24dda254e10146da1f6f4d4177af99782eafe1 diff --git a/t/cgibin_root_path.t b/t/cgibin_root_path.t index 7a17595..20c0e62 100644 --- a/t/cgibin_root_path.t +++ b/t/cgibin_root_path.t @@ -6,7 +6,7 @@ use warnings; use FindBin '$Bin'; use lib "$Bin/lib"; -use Test::More tests => 2; +use Test::More tests => 3; # Test configurable path root and dir { package root_test; @@ -37,3 +37,18 @@ use Test::More tests => 2; is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File 2'); } + +# test yet another variation on specifying the root path +{ package root_test_3; + + use Test::More; + use HTTP::Request::Common; + use Catalyst::Test 'TestCGIBinRoot3'; + + my $response = request POST '/cgi/path/test.pl', [ + foo => 'bar', + bar => 'baz' + ]; + + is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File 3'); +}