projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
83db87d
)
BEGIN { extends only needed in controllers
Tomas Doran [Mon, 4 Jul 2011 17:44:22 +0000 (18:44 +0100)]
t/aggregate/unit_core_container_custom_container.t
patch
|
blob
|
blame
|
history
diff --git
a/t/aggregate/unit_core_container_custom_container.t
b/t/aggregate/unit_core_container_custom_container.t
index
647ddf0
..
0695c81
100644
(file)
--- 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;
+