5 use lib "$FindBin::Bin/../lib";
7 use Test::More tests => 7;
8 use Catalyst::Test 'TestApp';
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 is($response->header('X-Catalyst-Test-Before'), 'before called', 'before works as expected');
19 local $TODO = 'Wrapping methods in a subclass, when the subclass contains no other methods with attributes is broken';
20 my $response = request('http://localhost/moose/methodmodifiers/get_attribute');
21 ok($response->is_success);
22 is($response->content, '42', 'parent controller method called');
23 is($response->header('X-Catalyst-Test-Before'), 'before called', 'before works as expected');
24 is($response->header('X-Catalyst-Test-After'), 'after called', 'after works as expected');