X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FRegexp.pm;h=4b59d58641f5b21ad3b814291fdb95215a35e28b;hp=cdb6abc651bcb242e841cc68e6454290cb576c60;hb=873b98ee118b378ace23ffdba0b440bcefdfc8c1;hpb=deca8181128ea8cfd9479b7205f1b4dd361a0b4d diff --git a/t/lib/TestApp/Controller/Action/Regexp.pm b/t/lib/TestApp/Controller/Action/Regexp.pm index cdb6abc..4b59d58 100644 --- a/t/lib/TestApp/Controller/Action/Regexp.pm +++ b/t/lib/TestApp/Controller/Action/Regexp.pm @@ -18,4 +18,13 @@ sub three : Action LocalRegex('^(mandatory)(/optional)?$'){ $c->forward('TestApp::View::Dump::Request'); } +sub four : Action Regex('^action/regexp/redirect/(\w+)/universe/(\d+)/everything$') { + my ( $self, $c ) = @_; + $c->res->redirect( + $c->uri_for($c->action, $c->req->captures, + @{$c->req->arguments}, $c->req->params + ) + ); +} + 1;