X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fhead_middleware.t;fp=t%2Fhead_middleware.t;h=ff7afcf2bf0ad01a64b747928787ac4d172829b5;hb=09b86ef3e370ed90851bdf8107bdbbb6532a87c8;hp=1171c7ba4b1b422e257be1600bf0fab00c22d2e6;hpb=b11b634514ba61907a4883935f1c83de0926acbd;p=catagits%2FCatalyst-Runtime.git diff --git a/t/head_middleware.t b/t/head_middleware.t index 1171c7b..ff7afcf 100644 --- a/t/head_middleware.t +++ b/t/head_middleware.t @@ -9,8 +9,9 @@ use Plack::Test; # body BUT not so quickly that we fail to calculate the length. This test # exists mainly to prevent regressions. -{ +{ package MyApp::Controller::Root; + $INC{'MyApp/Controller/Root.pm'} = __FILE__; use base 'Catalyst::Controller'; @@ -25,7 +26,6 @@ use Plack::Test; MyApp->setup; } -$INC{'MyApp/Controller/Root.pm'} = __FILE__; Test::More::ok(MyApp->setup);