X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Funit_core_engine_fixenv-lighttpd.t;h=51456a56a90192c7090ed5e9e6021648ef2e7218;hp=eeb0ca0807dada24ca73e8630c36b9ace9ba74fb;hb=35b3434762d426e0cd5e04eb735291f8ca7ea08e;hpb=d89b863eba721ed2ab337220d1e52cfd039a81fe diff --git a/t/aggregate/unit_core_engine_fixenv-lighttpd.t b/t/aggregate/unit_core_engine_fixenv-lighttpd.t index eeb0ca0..51456a5 100644 --- a/t/aggregate/unit_core_engine_fixenv-lighttpd.t +++ b/t/aggregate/unit_core_engine_fixenv-lighttpd.t @@ -1,5 +1,3 @@ -#!perl - use strict; use warnings; @@ -38,7 +36,7 @@ sub fix_env { my (%input_env) = @_; my $mangled_env; - my $app = Catalyst->_wrapped_legacy_psgi_app(sub { + my $app = Catalyst->apply_default_middlewares(sub { my ($env) = @_; $mangled_env = $env; return [ 200, ['Content-Type' => 'text/plain'], [''] ]; @@ -51,6 +49,7 @@ sub fix_env { my %fixed_env = fix_env(%env); is($fixed_env{PATH_INFO}, '/bar', 'check PATH_INFO'); -ok(!exists($fixed_env{SCRIPT_NAME}), 'check SCRIPT_NAME'); +ok(!exists($fixed_env{SCRIPT_NAME}) || !length($fixed_env{SCRIPT_NAME}), + 'check SCRIPT_NAME'); done_testing;