X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdi_backcompat_plugin_accessor_override.t;h=bb6bddf6c7a1f600db86e1c399e1a64a76f62150;hb=76721d3c6f8660effa365b8c1574b1e87f4973cb;hp=e60ccd640d0254e7fb4d0ed2e8d18d865b4d0ab6;hpb=8a440eba91ace539964b76901ad0e9274ece4ec6;p=catagits%2FCatalyst-Runtime.git diff --git a/t/cdi_backcompat_plugin_accessor_override.t b/t/cdi_backcompat_plugin_accessor_override.t index e60ccd6..bb6bddf 100644 --- a/t/cdi_backcompat_plugin_accessor_override.t +++ b/t/cdi_backcompat_plugin_accessor_override.t @@ -2,7 +2,7 @@ use strict; use warnings; use lib 't/lib'; -use Test::More tests => 1; +use Test::More tests => 2; use Test::Exception; # Force a stack trace. @@ -28,3 +28,9 @@ lives_ok { CDICompatTestApp->setup; } 'Setup app with plugins which says use base qw/Class::Accessor::Fast/'; +# And the plugin's setup_finished method should have been run, as accessors +# are not created in MyApp until the data is written to. +{ + no warnings 'once'; + is $CDICompatTestPlugin::Data::HAS_RUN_SETUP_FINISHED, 1, 'Plugin setup_finish run'; +}