do not localize %ENV, rather, remove potentially conflicting k-v pairs (RT #48557)
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 23-path_env.t
CommitLineData
a98f477e 1use strict;
2use warnings;
3
4use FindBin;
5use lib "$FindBin::Bin/lib";
6
7use Test::More tests => 3;
8
9BEGIN {
10 $ENV{ TESTAPP_CONFIG } = 'test.perl';
11 use_ok 'Catalyst::Test', 'TestApp';
12}
13
14ok my ( $res, $c ) = ctx_request( '/' ), 'context object';
15
16is_deeply [ $c->get_config_path ], [ qw( test.perl perl ) ], 'path is "test.perl"';