8 $c->stash->{test} ||= 'foo';
12 my ( $self, $c ) = @_;
13 $c->stash->{test} ||= 'bar';
17 my ( $self, $c ) = @_;
18 $c->stash->{test} ||= 'yada';
19 $c->res->output( $c->stash->{test} );
25 use Test::More tests => 2;
26 use Catalyst::Test 'TestApp';
28 ok( get('/foo') =~ /foo/ );
29 ok( get('/bar') =~ /bar/ );