Add another test, and TODO the fail.
[catagits/Catalyst-Runtime.git] / t / aggregate / live_component_controller_moose.t
1 use strict;
2 use warnings;
3
4 use FindBin;
5 use lib "$FindBin::Bin/../lib";
6
7 use Test::More tests => 5;
8 use Catalyst::Test 'TestApp';
9
10 {
11     my $response = request('http://localhost/moose/get_attribute');
12     ok($response->is_success);
13     is($response->content, '42', 'attribute default values get set correctly');
14 }
15
16 {
17     my $response = request('http://localhost/moose/methodmodifiers/get_attribute');
18     ok($response->is_success);
19     is($response->content, '42', 'parent controller method called');
20     TODO: {
21         local $TODO = 'Wrapping methods in a subclass, when the subclass contains no other methods with attributes is broken';
22         is($response->header('X-Catalyst-Test-After'), 'after called', 'after works as expected');
23     }
24 }