converting the engines. i had to add use NEXT to some of the test files to make it...
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Headers.pm
index c5a89cb..5bb07a5 100644 (file)
@@ -1,6 +1,7 @@
 package Catalyst::Plugin::Test::Headers;
 
 use strict;
+use NEXT;
 
 sub prepare {
     my $class = shift;
@@ -9,7 +10,7 @@ sub prepare {
 
     $c->response->header( 'X-Catalyst-Engine' => $c->engine );
     $c->response->header( 'X-Catalyst-Debug' => $c->debug ? 1 : 0 );
-    
+
     {
         my $components = join( ', ', sort keys %{ $c->components } );
         $c->response->header( 'X-Catalyst-Components' => $components );
@@ -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 );
     }