refactor _load(). fix an issue with use_ext => 0. use_ext now on by default. throw...
[p5sagit/Config-Any.git] / t / 50-general.t
CommitLineData
9ac432c2 1use Test::More tests => 4;
f0e3c221 2
3use Config::Any::General;
4
5my $config = eval { Config::Any::General->load( 't/conf/conf.conf' ) };
6
7SKIP: {
9ac432c2 8 skip "Couldn't Load Config::General plugin", 4 if $@;
f0e3c221 9 ok( $config );
10 is( $config->{ name }, 'TestApp' );
9ac432c2 11 ok( exists $config->{ Component } );
12
92a04e78 13 $config = eval {
14 Config::Any::General->load( 't/conf/conf.conf',
15 { -LowerCaseNames => 1 } );
16 };
9ac432c2 17
18 ok( exists $config->{ component } );
f0e3c221 19}