$temp = tempdir( CLEANUP => 1 );
$ENV{CATALYST_HOME} = $temp;
- open(my $psgi, '>', File::Spec->catdir($temp, 'testapp.psgi')) or die;
+ open(my $psgi, '>', File::Spec->catfile($temp, 'testapp.psgi')) or die;
print $psgi q{
use strict;
use TestApp;
$main::have_loaded_psgi = 1;
- my $app = sub { TestApp->psgi_app };
+ my $app = TestApp->psgi_app;
};
close($psgi);
}