Somewhat, but not much more sane. There are still bugs here, but this _should_ fix...
[catagits/Catalyst-Runtime.git] / t / aggregate / live_component_controller_moose.t
index 6ed86ba..1f24a16 100644 (file)
@@ -4,21 +4,23 @@ use warnings;
 use FindBin;
 use lib "$FindBin::Bin/../lib";
 
-use Test::More tests => 5;
+use Test::More tests => 7;
 use Catalyst::Test 'TestApp';
 
 {
     my $response = request('http://localhost/moose/get_attribute');
     ok($response->is_success);
     is($response->content, '42', 'attribute default values get set correctly');
+    is($response->header('X-Catalyst-Test-Before'), 'before called', 'before works as expected');
 }
 
 {
-    my $response = request('http://localhost/moose/methodmodifiers/get_attribute');
-    ok($response->is_success);
-    is($response->content, '42', 'parent controller method called');
     TODO: {
         local $TODO = 'Wrapping methods in a subclass, when the subclass contains no other methods with attributes is broken';
+        my $response = request('http://localhost/moose/methodmodifiers/get_attribute');       
+        ok($response->is_success);
+        is($response->content, '42', 'parent controller method called');
+        is($response->header('X-Catalyst-Test-Before'), 'before called', 'before works as expected');
         is($response->header('X-Catalyst-Test-After'), 'after called', 'after works as expected');
     }
 }