7 use Moose::Util qw/does_role/;
9 use Test::More tests => 6;
13 # Naughty, should make an app instance.
14 my $controller = DynamicAppDemo->controller('One');
17 isa_ok $controller, 'DynamicAppDemo::ControllerBase';
18 ok $controller->can('method_from_controller_role'), 'Role appears applied';
20 ok ! $controller->action_for('get_reflected_action_methods'),
21 'not leaking actions';
23 ok ! $controller->action_for('method_from_controller_role'),
24 'not leaking actions';
26 ok $controller->action_for('say_hello'),
27 'Am finding generated actions';