4 use Test::More tests => 2;
7 package MyApp::Controller::Foo;
9 use base qw/Catalyst::Controller/;
11 package MyApp::Controller::Root;
13 use base qw/Catalyst::Controller/;
15 __PACKAGE__->config(namespace => '');
22 is(MyApp::Controller::Foo->action_namespace('Stub'), 'foo');
24 is(MyApp::Controller::Root->action_namespace('Stub'), '');