X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FRegexp.pm;h=cdb6abc651bcb242e841cc68e6454290cb576c60;hb=6ebb781872628a74ac0916b163bcf8411b232399;hp=e454cfd57cdfe0eb3f2502eee09fdb326531fe10;hpb=66741f94ac93b7ba0989db3556d0e3fe36c1be87;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Regexp.pm b/t/lib/TestApp/Controller/Action/Regexp.pm index e454cfd..cdb6abc 100644 --- a/t/lib/TestApp/Controller/Action/Regexp.pm +++ b/t/lib/TestApp/Controller/Action/Regexp.pm @@ -13,4 +13,9 @@ sub two : Action LocalRegexp('^(\d+)/(\w+)$') { $c->forward('TestApp::View::Dump::Request'); } +sub three : Action LocalRegex('^(mandatory)(/optional)?$'){ + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump::Request'); +} + 1;