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=7162202615b7a39a099aa9cfbb3d706d9ef3f1f8;hp=c757d9c36f83049626d12b370a95d92a610d0382;hb=d5c890a4433058eb9fb0ac7f23cd264d38e6cff0;hpb=a791afa956ab3567617c2cdb3065a481b5a7b7f2 diff --git a/t/inject_component_util.t b/t/inject_component_util.t index c757d9c..7162202 100644 --- a/t/inject_component_util.t +++ b/t/inject_component_util.t @@ -2,7 +2,9 @@ use strict; use warnings; use Test::More; use Catalyst::Utils; - +use FindBin; +use lib "$FindBin::Bin/lib"; + BEGIN { package Model::Banana; @@ -20,9 +22,9 @@ use Catalyst; after 'setup_components' => sub { my $self = shift; Catalyst::Utils::inject_component( into => __PACKAGE__, component => 'Model::Banana' ); - Catalyst::Utils::inject_component( into => __PACKAGE__, component => 't::Test::Apple' ); + Catalyst::Utils::inject_component( into => __PACKAGE__, component => 'Test::Apple' ); Catalyst::Utils::inject_component( into => __PACKAGE__, component => 'Model::Banana', as => 'Cherry' ); - Catalyst::Utils::inject_component( into => __PACKAGE__, component => 't::Test::Apple', as => 'Apple' ); + Catalyst::Utils::inject_component( into => __PACKAGE__, component => 'Test::Apple', as => 'Apple' ); }; TestCatalyst->config( 'home' => '.' ); @@ -35,7 +37,7 @@ package main; use Catalyst::Test qw/TestCatalyst/; -ok( TestCatalyst->controller( $_ ) ) for qw/ Apple t::Test::Apple /; +ok( TestCatalyst->controller( $_ ) ) for qw/ Apple Test::Apple /; ok( TestCatalyst->model( $_ ) ) for qw/ Banana Cherry /; done_testing;