From: Brian Cassidy Date: Thu, 23 Aug 2007 14:33:42 +0000 (+0000) Subject: added test for config options to Config::General X-Git-Tag: v0.08~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ac432c28992e8fe48ae8205a5895e99a086e993;p=p5sagit%2FConfig-Any.git added test for config options to Config::General --- diff --git a/t/50-general.t b/t/50-general.t index 9d4a884..34cc74c 100644 --- a/t/50-general.t +++ b/t/50-general.t @@ -1,11 +1,16 @@ -use Test::More tests => 2; +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", 2 if $@; + 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 } ); }