X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FRegexp.pm;h=79668749ee807d61ab955d07269bfaaa4848734e;hb=9cdb85d28dad6a60a5b5d3241c0073567d6983b8;hp=cdb6abc651bcb242e841cc68e6454290cb576c60;hpb=cccc8f68ace5d11c3fdcbfc4e353225b3b574255;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Regexp.pm b/t/lib/TestApp/Controller/Action/Regexp.pm index cdb6abc..7966874 100644 --- a/t/lib/TestApp/Controller/Action/Regexp.pm +++ b/t/lib/TestApp/Controller/Action/Regexp.pm @@ -18,4 +18,18 @@ 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 + ) + ); +} + +sub one_backslashes : Action Regex('^action/regexp/(\w+)/(\d+)\.html$') { + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump::Request'); +} + 1;