[Catalyst-commits] r9833 - Catalyst-Runtime/5.80/trunk/t/aggregate
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sat Apr 25 15:41:35 GMT 2009
Author: t0m
Date: 2009-04-25 16:41:34 +0100 (Sat, 25 Apr 2009)
New Revision: 9833
Modified:
Catalyst-Runtime/5.80/trunk/t/aggregate/live_component_controller_moose.t
Log:
Add another test, and TODO the fail.
Modified: Catalyst-Runtime/5.80/trunk/t/aggregate/live_component_controller_moose.t
===================================================================
--- Catalyst-Runtime/5.80/trunk/t/aggregate/live_component_controller_moose.t 2009-04-25 06:23:30 UTC (rev 9832)
+++ Catalyst-Runtime/5.80/trunk/t/aggregate/live_component_controller_moose.t 2009-04-25 15:41:34 UTC (rev 9833)
@@ -4,7 +4,7 @@
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 @@
{
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');
+ }
}
More information about the Catalyst-commits
mailing list