6 package MyApp::Controller::Root;
7 $INC{'MyApp/Controller/Root.pm'} = __FILE__;
9 use base 'Catalyst::Controller';
11 sub root :Path('') Args(0) {
13 $c->{stash}->{foo} = 'bar';
14 $c->stash(baz=>'boor');
15 $c->{stash}->{baz} = $c->stash->{baz} . 2;
17 Test::More::is($c->stash->{foo}, 'bar');
18 Test::More::is($c->stash->{baz}, 'boor2');
19 Test::More::is($c->{stash}->{foo}, 'bar');
20 Test::More::is($c->{stash}->{baz}, 'boor2');
22 $c->res->body('return');
30 use HTTP::Request::Common;
31 use Catalyst::Test 'MyApp';
34 ok my $res = request POST 'root/';