X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_core_plugin.t;h=e46797a4807cfd92d87138ee1c5dc2cc2ebfbaa7;hb=9ce444302fb0d264c4182d57d564e376e61a4725;hp=46647fb0a774f7351efce4dd5c9f603608dd8ac2;hpb=836e1134dfc70e064464c366a44ebb6aabfa1648;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_core_plugin.t b/t/unit_core_plugin.t index 46647fb..e46797a 100644 --- a/t/unit_core_plugin.t +++ b/t/unit_core_plugin.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 20; +use Test::More tests => 22; use lib 't/lib'; @@ -91,3 +91,15 @@ use Catalyst::Test qw/PluginTestApp/; ok( get("/compile_time_plugins"), "get ok" ); ok( get("/run_time_plugins"), "get ok" ); + +use_ok 'TestApp'; +my @expected = qw( + Catalyst::Plugin::Test::Errors + Catalyst::Plugin::Test::Headers + Catalyst::Plugin::Test::Plugin + TestApp::Plugin::FullyQualified +); + +# Faux::Plugin is no longer reported +is_deeply [ TestApp->registered_plugins ], \@expected, + 'registered_plugins() should only report the plugins for the current class';