reverting (most of) the whitespace changes
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Headers.pm
index 0cb4794..0258a09 100644 (file)
@@ -1,6 +1,7 @@
 package Catalyst::Plugin::Test::Headers;
 
 use strict;
+use NEXT;
 
 sub prepare {
     my $class = shift;
@@ -11,14 +12,14 @@ sub prepare {
     $c->response->header( 'X-Catalyst-Debug' => $c->debug ? 1 : 0 );
     
     {
-        my @components = sort keys %{ $c->components };
-        $c->response->headers->push_header( 'X-Catalyst-Components' => [ @components ] );
+        my $components = join( ', ', sort keys %{ $c->components } );
+        $c->response->header( 'X-Catalyst-Components' => $components );
     }
 
     {
         no strict 'refs';
-        my @plugins = sort grep { m/^Catalyst::Plugin/ } @{ $class . '::ISA' };
-        $c->response->headers->push_header( 'X-Catalyst-Plugins' => [ @plugins ] );
+        my $plugins = join ', ', $class->registered_plugins;
+        $c->response->header( 'X-Catalyst-Plugins' => $plugins );
     }
 
     return $c;