reverting (most of) the whitespace changes
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Headers.pm
index c5a89cb..0258a09 100644 (file)
@@ -1,6 +1,7 @@
 package Catalyst::Plugin::Test::Headers;
 
 use strict;
+use NEXT;
 
 sub prepare {
     my $class = shift;
@@ -17,7 +18,7 @@ sub prepare {
 
     {
         no strict 'refs';
-        my $plugins = join( ', ', sort grep { m/^Catalyst::Plugin/ } @{ $class . '::ISA' } );
+        my $plugins = join ', ', $class->registered_plugins;
         $c->response->header( 'X-Catalyst-Plugins' => $plugins );
     }