X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestCGIBin%2FController%2FCGIHandler.pm;h=0e18ee690c828c8b42d878812ec2926f1f777b21;hb=9cc2dd4cf91d00221ca404219404c1b9bfbf8a80;hp=41e20f568764bf1c677c4aea66b42365d31e9ec6;hpb=21a20b7e40ead509ca832db9099a4b76d3d61cd4;p=catagits%2FCatalyst-Controller-WrapCGI.git diff --git a/t/lib/TestCGIBin/Controller/CGIHandler.pm b/t/lib/TestCGIBin/Controller/CGIHandler.pm index 41e20f5..0e18ee6 100644 --- a/t/lib/TestCGIBin/Controller/CGIHandler.pm +++ b/t/lib/TestCGIBin/Controller/CGIHandler.pm @@ -2,16 +2,21 @@ package TestCGIBin::Controller::CGIHandler; use parent 'Catalyst::Controller::CGIBin'; +sub cgi_path { + my ($self, $cgi) = @_; + return "my-bin/$cgi"; +} + # try out a forward sub dongs : Local Args(0) { my ($self, $c) = @_; - $c->forward('/cgihandler/CGI_test_pl'); + $c->forward('/cgihandler/CGI_path_test_pl'); } # try resolved forward sub mtfnpy : Local Args(0) { my ($self, $c) = @_; - $c->forward($self->cgi_action('test.pl')); + $c->forward($self->cgi_action('path/test.pl')); } 1;