use warnings;
use Test::More;
use Catalyst::Utils;
-
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
BEGIN {
package Model::Banana;
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' => '.' );
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;