X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fcdi_backcompat_plugin_accessor_override.t;h=9b3bb0f73280f4e71a4fa9cd5157bdba554f6e52;hp=e60ccd640d0254e7fb4d0ed2e8d18d865b4d0ab6;hb=df3ea11bb1ad740663f2a4c909fba71612aa6a48;hpb=5baa3bbcb8bea403665bceaa82f819905f0b501f diff --git a/t/cdi_backcompat_plugin_accessor_override.t b/t/cdi_backcompat_plugin_accessor_override.t index e60ccd6..9b3bb0f 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,11 @@ 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. +TODO: { + local $TODO = "Copying the class data accessor down into MyApp other than at runtime\n" . + " when assigned (as pre exact CDI behavior) causes methods to not get run'; + no warnings 'once'; + is $CDICompatTestPlugin::Data::HAS_RUN_SETUP_FINISHED, 1, 'Plugin setup_finish run'; +}