X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F50-general.t;h=34cc74cb9c1fa87171f57fadbb3d82c547f96164;hp=cf334cba062207217db21cbf9a77314b18f75826;hb=9ac432c28992e8fe48ae8205a5895e99a086e993;hpb=572501abb2165014af8973bf9a4aa1f8a522356d diff --git a/t/50-general.t b/t/50-general.t index cf334cb..34cc74c 100644 --- a/t/50-general.t +++ b/t/50-general.t @@ -1,11 +1,16 @@ -use Test::More tests => 2; - -use Config::Any::General; - -my $config = eval { Config::Any::General->load( 't/conf/conf.conf' ) }; - -SKIP: { - skip "Couldn't Load Config::General plugin", 2 if $@; - ok( $config ); - is( $config->{ name }, 'TestApp' ); -} +use Test::More tests => 4; + +use Config::Any::General; + +my $config = eval { Config::Any::General->load( 't/conf/conf.conf' ) }; + +SKIP: { + skip "Couldn't Load Config::General plugin", 4 if $@; + ok( $config ); + is( $config->{ name }, 'TestApp' ); + ok( exists $config->{ Component } ); + + $config = eval { Config::Any::General->load( 't/conf/conf.conf', { -LowerCaseNames => 1 } ) }; + + ok( exists $config->{ component } ); +}