From: Tomas Doran Date: Mon, 4 Jul 2011 17:44:22 +0000 (+0100) Subject: BEGIN { extends only needed in controllers X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=12c216c84f174ba5e8f3d5f7ca3b30df7565961e BEGIN { extends only needed in controllers --- diff --git a/t/aggregate/unit_core_container_custom_container.t b/t/aggregate/unit_core_container_custom_container.t index 647ddf0..0695c81 100644 --- a/t/aggregate/unit_core_container_custom_container.t +++ b/t/aggregate/unit_core_container_custom_container.t @@ -7,7 +7,7 @@ use Test::More; { package ContainerTestApp; use Moose; - BEGIN { extends 'Catalyst' }; + extends 'Catalyst'; __PACKAGE__->setup_config(); __PACKAGE__->setup_log(); @@ -23,7 +23,7 @@ is( ref $container, 'Catalyst::Container', 'The container is Catalyst::Container { package CustomContainerTestApp::Container; use Moose; - BEGIN { extends 'Catalyst::Container' }; + extends 'Catalyst::Container'; sub my_custom_method { 1 } } @@ -44,3 +44,4 @@ can_ok($container, 'my_custom_method'); ok( eval { $container->my_custom_method }, 'executes the method correctly'); done_testing; +