X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_metaclass_compat_non_moose_controller.t;h=cb3c1e2262ef5f9bbf4122a3aa61243249c95d2a;hb=f98f669b6d260818f6319db35abcdebb549035ba;hp=d2a61d9fa2317da4263d657d43c3915196579010;hpb=2f5cb0703a06e037f2521ba220242a937d0e35b9;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_metaclass_compat_non_moose_controller.t b/t/unit_metaclass_compat_non_moose_controller.t index d2a61d9..cb3c1e2 100644 --- a/t/unit_metaclass_compat_non_moose_controller.t +++ b/t/unit_metaclass_compat_non_moose_controller.t @@ -1,6 +1,10 @@ use Catalyst (); { + package TestApp; + use base qw/Catalyst/; +} +{ package TestApp::Controller::Base; use base qw/Catalyst::Controller/; } @@ -9,8 +13,8 @@ use Catalyst (); use base qw/TestApp::Controller::Base/; } -Catalyst->setup_component('TestApp::Controller::Other'); -Catalyst->setup_component('TestApp::Controller::Base'); +TestApp->setup_component('TestApp::Controller::Other'); +TestApp->setup_component('TestApp::Controller::Base'); use Test::More tests => 1; use Test::Exception;