fix loading inline packages in tests
[catagits/Catalyst-Runtime.git] / t / psgi_utils.t
index 829d8e3..15afb9d 100644 (file)
@@ -10,6 +10,7 @@ my $psgi_app = sub {
 
 {
   package MyApp::Controller::Docs;
+  $INC{'MyApp/Controller/Docs.pm'} = __FILE__;
 
   use base 'Catalyst::Controller';
   use Plack::Request;
@@ -31,6 +32,7 @@ my $psgi_app = sub {
   }
 
   package MyApp::Controller::User;
+  $INC{'MyApp/Controller/User.pm'} = __FILE__;
 
   use base 'Catalyst::Controller';
   use Plack::Request;
@@ -89,8 +91,6 @@ my $psgi_app = sub {
     }
   }
 
-  $INC{'MyApp/Controller/User.pm'} = __FILE__;
-
   package MyApp;
   use Catalyst;
   MyApp->setup;