i want some kick ass tests for this :)
[catagits/Catalyst-Runtime.git] / t / 05regexaction.t
index 142eeea..212c193 100644 (file)
@@ -2,12 +2,12 @@ package TestApp;
 
 use Catalyst qw[-Engine=Test];
 
-__PACKAGE__->action(
-    '/foo/(.*)/' => sub {
+sub testregex : Regex(foo/(.*)) {
         my ( $self, $c ) = @_;
         $c->res->output( $c->req->snippets->[0] );
-    }
-);
+}
+
+__PACKAGE__->setup();
 
 package main;