X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestAppPluginWithConstructor.pm;h=faa1f9c76b67da89a8e24f35eaab5c71c435eacf;hp=30818f8e1c6269f9b17b090464b521a086e4041b;hb=82010ea176741c7a4f2baf3f6f27377b1d9f6b15;hpb=6a8f85af6d0032d3f6aecc0ce9420ceb523910b2 diff --git a/t/lib/TestAppPluginWithConstructor.pm b/t/lib/TestAppPluginWithConstructor.pm index 30818f8..faa1f9c 100644 --- a/t/lib/TestAppPluginWithConstructor.pm +++ b/t/lib/TestAppPluginWithConstructor.pm @@ -1,22 +1,21 @@ # See t/plugin_new_method_backcompat.t package TestAppPluginWithConstructor; -use Test::Exception; +use Test::More; +use Test::Fatal; use Catalyst qw/+TestPluginWithConstructor/; use Moose; -BEGIN { extends qw/Catalyst Catalyst::Controller/ } # Ewww, FIXME. - -sub foo : Local { - my ($self, $c) = @_; - $c->res->body('foo'); -} +extends qw/Catalyst/; __PACKAGE__->setup; our $MODIFIER_FIRED = 0; -lives_ok { +is exception { before 'dispatch' => sub { $MODIFIER_FIRED = 1 } -} 'Can apply method modifier'; +}, undef, 'Can apply method modifier'; no Moose; +our $IS_IMMUTABLE_YET = __PACKAGE__->meta->is_immutable; +ok !$IS_IMMUTABLE_YET, 'I am not immutable yet'; + 1;