X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Finject_component_util.t;h=b015ff996d8219c0e1629e11e778abcb21a40394;hp=3ac9dccb29a7562ba29a29f9420bf37c46136ece;hb=88e5a8b0c4d28e46b8ba6b6b9567063e57af9063;hpb=9868e0a0023cc8b598d60f150ea367e0056a65f3 diff --git a/t/inject_component_util.t b/t/inject_component_util.t index 3ac9dcc..b015ff9 100644 --- a/t/inject_component_util.t +++ b/t/inject_component_util.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings; use Test::More; use FindBin; use lib "$FindBin::Bin/lib"; @@ -36,11 +36,11 @@ BEGIN { { package TestCatalyst; $INC{'TestCatalyst.pm'} = __FILE__; - + use Moose; use Catalyst; use Catalyst::Utils; - + after 'setup_components' => sub { my $self = shift; Catalyst::Utils::inject_component( into => __PACKAGE__, component => 'Model::Banana' ); @@ -50,13 +50,13 @@ BEGIN { Catalyst::Utils::inject_component( into => __PACKAGE__, component => 'Test::Apple', as => 'Apple' ); Catalyst::Utils::inject_component( into => __PACKAGE__, component => 'Test::Apple', as => 'Apple2', traits => ['RoleTest1', 'RoleTest2'] ); }; - - TestCatalyst->config( 'home' => '.' ); + + TestCatalyst->config( 'home' => '.' ); TestCatalyst->setup; } - + use Catalyst::Test qw/TestCatalyst/; - + ok( TestCatalyst->controller( $_ ) ) for qw/ Apple Test::Apple /; ok( TestCatalyst->model( $_ ) ) for qw/ Banana Cherry /; is( TestCatalyst->controller('Apple2')->aaa, 'aaa');