4 use Test::More tests => 3;
5 use Test::NoWarnings; # Adds an extra test.
8 package MyApp::Controller::Foo;
10 use base qw/Catalyst::Controller/;
12 package MyApp::Controller::Root;
14 use base qw/Catalyst::Controller/;
16 __PACKAGE__->config(namespace => '');
23 is(MyApp::Controller::Foo->action_namespace('Stub'), 'foo');
25 is(MyApp::Controller::Root->action_namespace('Stub'), '');