projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
i want some kick ass tests for this :)
[catagits/Catalyst-Runtime.git]
/
t
/
05regexaction.t
diff --git
a/t/05regexaction.t
b/t/05regexaction.t
index
142eeea
..
212c193
100644
(file)
--- a/
t/05regexaction.t
+++ b/
t/05regexaction.t
@@
-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;