X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_component_controller_moose.t;h=1f24a1602f0e9c0948056ecc5a4b658492400cfe;hb=cf37d21a258273df337d7c3d9214b286713ec9ca;hp=660433c212fa2b0a53cc14e560956a5a060a8f6a;hpb=87e41a18d91b875821d988381fb0c32d8e79128a;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_component_controller_moose.t b/t/aggregate/live_component_controller_moose.t index 660433c..1f24a16 100644 --- a/t/aggregate/live_component_controller_moose.t +++ b/t/aggregate/live_component_controller_moose.t @@ -4,17 +4,23 @@ use warnings; use FindBin; use lib "$FindBin::Bin/../lib"; -use Test::More tests => 4; +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->header('X-Catalyst-Test-After'), 'after called', 'after works as expected'); + 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'); + } }