Rename the actions attribute in Catalyt::Controller to _controller_actions to avoid...
[catagits/Catalyst-Runtime.git] / t / lib / TestAppPluginWithConstructor.pm
CommitLineData
6a8f85af 1# See t/plugin_new_method_backcompat.t
2package TestAppPluginWithConstructor;
3use Test::Exception;
4use Catalyst qw/+TestPluginWithConstructor/;
5use Moose;
6BEGIN { extends qw/Catalyst Catalyst::Controller/ } # Ewww, FIXME.
7
8sub foo : Local {
9 my ($self, $c) = @_;
10 $c->res->body('foo');
11}
12
13__PACKAGE__->setup;
14our $MODIFIER_FIRED = 0;
15
16lives_ok {
17 before 'dispatch' => sub { $MODIFIER_FIRED = 1 }
18} 'Can apply method modifier';
19no Moose;
20
211;
22