1 use Test::More tests => 7;
9 qw/C::Controller M::Model V::View Controller::C Model::M View::V/;
15 use base qw/Catalyst/;
17 __PACKAGE__->components( { map { ( $_, $_ ) } @complist } );
20 is( MyApp->view('View'), 'MyApp::V::View', 'V::View ok' );
22 is( MyApp->controller('Controller'),
23 'MyApp::C::Controller', 'C::Controller ok' );
25 is( MyApp->model('Model'), 'MyApp::M::Model', 'M::Model ok' );
27 is( MyApp->view('V'), 'MyApp::View::V', 'View::V ok' );
29 is( MyApp->controller('C'), 'MyApp::Controller::C', 'Controller::C ok' );
31 is( MyApp->model('M'), 'MyApp::Model::M', 'Model::M ok' );