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