X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_container_custom_container.t;h=0695c819aa34b64673c44e225706b07c1b5e0c36;hb=12c216c84f174ba5e8f3d5f7ca3b30df7565961e;hp=647ddf04f5d6d4a10947daf412603d19438f3ebb;hpb=83db87df7ee52592ca190f353529778900e75f18;p=catagits%2FCatalyst-Runtime.git 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; +