Commit | Line | Data |
---|---|---|
fc7ec1d9 | 1 | package TestApp; |
2 | ||
e05c5e3c | 3 | use Catalyst qw[-Engine=Test]; |
fc7ec1d9 | 4 | |
dea8ff68 | 5 | sub testregex : Regex(foo/(.*)) { |
fc7ec1d9 | 6 | my ( $self, $c ) = @_; |
7 | $c->res->output( $c->req->snippets->[0] ); | |
dea8ff68 | 8 | } |
9 | ||
10 | __PACKAGE__->setup(); | |
fc7ec1d9 | 11 | |
12 | package main; | |
13 | ||
14 | use Test::More tests => 1; | |
15 | use Catalyst::Test 'TestApp'; | |
16 | ||
17 | ok( get('/foo/bar') =~ /bar/ ); |