From: John Napiorkowski Date: Fri, 24 Jul 2015 20:59:04 +0000 (-0500) Subject: cannnot use single file app like this X-Git-Tag: 5.90096~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f6462fb02e19e32d54ac0dcb8511d9c07f9276c4 cannnot use single file app like this --- diff --git a/t/body_fh.t b/t/body_fh.t index 447794a..3b7f616 100644 --- a/t/body_fh.t +++ b/t/body_fh.t @@ -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);