added Test::Pod support
[catagits/Catalyst-Runtime.git] / t / 05regexaction.t
CommitLineData
fc7ec1d9 1package TestApp;
2
e05c5e3c 3use Catalyst qw[-Engine=Test];
fc7ec1d9 4
5__PACKAGE__->action(
6 '/foo/(.*)/' => sub {
7 my ( $self, $c ) = @_;
8 $c->res->output( $c->req->snippets->[0] );
9 }
10);
11
12package main;
13
14use Test::More tests => 1;
15use Catalyst::Test 'TestApp';
16
17ok( get('/foo/bar') =~ /bar/ );