added Test::Pod support
[catagits/Catalyst-Runtime.git] / t / 05regexaction.t
diff --git a/t/05regexaction.t b/t/05regexaction.t
new file mode 100644 (file)
index 0000000..142eeea
--- /dev/null
@@ -0,0 +1,17 @@
+package TestApp;
+
+use Catalyst qw[-Engine=Test];
+
+__PACKAGE__->action(
+    '/foo/(.*)/' => sub {
+        my ( $self, $c ) = @_;
+        $c->res->output( $c->req->snippets->[0] );
+    }
+);
+
+package main;
+
+use Test::More tests => 1;
+use Catalyst::Test 'TestApp';
+
+ok( get('/foo/bar') =~ /bar/ );