3d0d552fb6298f51b2cdae8d559ee1c17b461d74
[catagits/Catalyst-Runtime.git] / t / lib / TestAppPluginWithConstructor.pm
1 # See t/plugin_new_method_backcompat.t
2 package TestAppPluginWithConstructor;
3 use Test::More;
4 use Test::Exception;
5 use Catalyst qw/+TestPluginWithConstructor/;
6 use Moose;
7 extends qw/Catalyst/;
8
9 __PACKAGE__->setup;
10 our $MODIFIER_FIRED = 0;
11
12 lives_ok {
13     before 'dispatch' => sub { $MODIFIER_FIRED = 1 }
14 } 'Can apply method modifier';
15 no Moose;
16
17 our $IS_IMMUTABLE_YET = __PACKAGE__->meta->is_immutable;
18 ok !$IS_IMMUTABLE_YET, 'I am not immutable yet';
19
20 1;
21