Make superclasses and roles tests pass
[catagits/CatalystX-DynamicComponent.git] / t / 05_dynamiccontrollers.t
CommitLineData
d5c074b5 1use strict;
2use warnings;
3
4use FindBin qw/$Bin/;
5use lib "$Bin/lib";
6
7use Moose::Util qw/does_role/;
8
1bbef1e7 9use Test::More tests => 4;
d5c074b5 10
11use DynamicAppDemo;
12
13# Naughty, should make an app instance.
14my $controller = DynamicAppDemo->controller('One');
15
16ok $controller;
1bbef1e7 17isa_ok $controller, 'DynamicAppDemo::ControllerBase';
18ok does_role($controller, 'DynamicAppDemo::ControllerRole');
d5c074b5 19ok ! $controller->action_for('get_reflected_action_methods'),
20 'not leaking actions';
21