added test for config options to Config::General
[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
13 $config = eval { Config::Any::General->load( 't/conf/conf.conf', { -LowerCaseNames => 1 } ) };
14
15 ok( exists $config->{ component } );
f0e3c221 16}