Add another test, and TODO the fail.
Tomas Doran [Sat, 25 Apr 2009 15:41:34 +0000 (15:41 +0000)]
t/aggregate/live_component_controller_moose.t

index 660433c..6ed86ba 100644 (file)
@@ -4,7 +4,7 @@ use warnings;
 use FindBin;
 use lib "$FindBin::Bin/../lib";
 
-use Test::More tests => 4;
+use Test::More tests => 5;
 use Catalyst::Test 'TestApp';
 
 {
@@ -16,5 +16,9 @@ use Catalyst::Test 'TestApp';
 {
     my $response = request('http://localhost/moose/methodmodifiers/get_attribute');
     ok($response->is_success);
-    is($response->header('X-Catalyst-Test-After'), 'after called', 'after works as expected');
+    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';
+        is($response->header('X-Catalyst-Test-After'), 'after called', 'after works as expected');
+    }
 }