cannnot use single file app like this
John Napiorkowski [Fri, 24 Jul 2015 20:59:04 +0000 (15:59 -0500)]
t/body_fh.t

index 447794a..3b7f616 100644 (file)
@@ -40,12 +40,14 @@ use Plack::Util;
     $c->res->body('manual_write');
   }
 
+  $INC{'MyApp/Controller/Root.pm'} = __FILE__; # sorry...
+
   package MyApp;
   use Catalyst;
 
 }
 
-$INC{'MyApp/Controller/Root.pm'} = '1'; # sorry...
+
 
 ok(MyApp->setup);
 ok(my $psgi = MyApp->psgi_app);