Bumping version to 5.90123
[catagits/Catalyst-Runtime.git] / t / no_test_stash_bug.t
CommitLineData
ff2b698b 1use warnings;
2use strict;
3
4# For reported: https://rt.cpan.org/Ticket/Display.html?id=97948
5
6{
7 package MyApp::Controller::Root;
8 $INC{'MyApp/Controller/Root.pm'} = __FILE__;
9
10 use base 'Catalyst::Controller';
11
12 sub example :Local Args(0) {
13 pop->stash->{testing1} = 'testing2';
14 }
15
16 package MyApp;
17 use Catalyst;
18
19 MyApp->setup;
20}
21
22use Test::More;
23use Catalyst::Test 'MyApp';
24
25my ($res, $c) = ctx_request('/root/example');
26is $c->stash->{testing1}, 'testing2', 'got expected stash value';
27
28done_testing;