added cgi.pl helper script
[catagits/Catalyst-Runtime.git] / t / 09forward.t
CommitLineData
fc7ec1d9 1package TestApp;
2
3use Catalyst;
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/ );