whitespace cleanup
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Headers.pm
index c5a89cb..f6d4690 100644 (file)
@@ -1,15 +1,16 @@
 package Catalyst::Plugin::Test::Headers;
 
 use strict;
+use MRO::Compat;
 
 sub prepare {
     my $class = shift;
 
-    my $c = $class->NEXT::prepare(@_);
+    my $c = $class->next::method(@_);
 
     $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 );
     }
 
@@ -26,7 +27,7 @@ sub prepare {
 
 sub prepare_action {
     my $c = shift;
-    $c->NEXT::prepare_action(@_);
+    $c->next::method(@_);
     $c->res->header( 'X-Catalyst-Action' => $c->req->action );
 }