X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcgibin.t;h=83406334663baa33bfc299002cb9029709a0fadf;hb=9cc2dd4cf91d00221ca404219404c1b9bfbf8a80;hp=bdb4435c0634d2fd932804493f2793199f359d3e;hpb=c264816e2877d684b9eed88e29868b6efea3c92c;p=catagits%2FCatalyst-Controller-WrapCGI.git diff --git a/t/cgibin.t b/t/cgibin.t index bdb4435..8340633 100644 --- a/t/cgibin.t +++ b/t/cgibin.t @@ -11,7 +11,10 @@ use Test::More tests => 4; use Catalyst::Test 'TestCGIBin'; use HTTP::Request::Common; -my $response = request POST '/cgi-bin/path/test.pl', [ +# this should be ignored +$ENV{MOD_PERL} = "mod_perl/2.0"; + +my $response = request POST '/my-bin/path/test.pl', [ foo => 'bar', bar => 'baz' ]; @@ -38,5 +41,5 @@ SKIP: { skip "Can't run shell scripts on non-*nix", 1 if $^O eq 'MSWin32' || $^O eq 'VMS'; - is(get('/cgi-bin/test.sh'), "Hello!\n", 'Non-Perl CGI File'); + is(get('/my-bin/test.sh'), "Hello!\n", 'Non-Perl CGI File'); }