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=e684bf28e726628efe7f1651913253721f951f62;hp=cf334cba062207217db21cbf9a77314b18f75826;hb=92a04e78451078b33f75e7c44d247b024c27b4f7;hpb=572501abb2165014af8973bf9a4aa1f8a522356d diff --git a/t/50-general.t b/t/50-general.t index cf334cb..e684bf2 100644 --- a/t/50-general.t +++ b/t/50-general.t @@ -1,11 +1,19 @@ -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 } ); +}