added Test::Pod support
[catagits/Catalyst-Runtime.git] / t / 10forward.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->forward('bar');
9 },
10 bar => sub {
11 my ( $self, $c, $arg ) = @_;
12 $c->res->output($arg);
13 }
14);
15
16package main;
17
18use Test::More tests => 1;
19use Catalyst::Test 'TestApp';
20
21ok( get('/foo/bar') =~ /bar/ );