Commit | Line | Data |
---|---|---|
2a7e382e | 1 | use strict; |
2 | use warnings; | |
3 | ||
2c4bd922 | 4 | use Test::More tests => 2; |
2a7e382e | 5 | |
6 | BEGIN { | |
7 | package MyApp::Controller::Foo; | |
8 | ||
9 | use base qw/Catalyst::Controller/; | |
10 | ||
11 | package MyApp::Controller::Root; | |
12 | ||
13 | use base qw/Catalyst::Controller/; | |
14 | ||
15 | __PACKAGE__->config(namespace => ''); | |
16 | ||
17 | package Stub; | |
18 | ||
19 | sub config { {} }; | |
20 | } | |
21 | ||
22 | is(MyApp::Controller::Foo->action_namespace('Stub'), 'foo'); | |
23 | ||
24 | is(MyApp::Controller::Root->action_namespace('Stub'), ''); |