X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FCDICompatTestPlugin.pm;h=f7e2d0588796fe5ce497919c6b02fd9736185e76;hp=470373c0e4a2c5283e9ef32a1d9e5a3bb987bf81;hb=82010ea176741c7a4f2baf3f6f27377b1d9f6b15;hpb=8a440eba91ace539964b76901ad0e9274ece4ec6 diff --git a/t/lib/CDICompatTestPlugin.pm b/t/lib/CDICompatTestPlugin.pm index 470373c..f7e2d05 100644 --- a/t/lib/CDICompatTestPlugin.pm +++ b/t/lib/CDICompatTestPlugin.pm @@ -25,4 +25,18 @@ sub setup { $app->next::method(@_); } +# However, if we are too enthusiastic about adding accessors to the +# MyApp package, then this method isn't called (as there is a local +# symbol already). + +# Note - use a different package here, so that Moose's +# package detection code doesn't get confused.. +$CDICompatTestPlugin::Data::HAS_RUN_SETUP_FINISHED = 0; + +sub setup_finished { + my $app = shift; + $CDICompatTestPlugin::Data::HAS_RUN_SETUP_FINISHED = 1; + $app->next::method(@_); +} + 1;