X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F51-ini.t;h=17b5bcd351d03a57fd2616cc9cf53f649fc358d5;hp=206d1a7b08783feb60642eaef85321d38cdfc4c4;hb=8587679b9219b55bb8189772981387b0cd70b685;hpb=61994c33174c5f1d42f625796e6e412d8db57f3a diff --git a/t/51-ini.t b/t/51-ini.t index 206d1a7..17b5bcd 100644 --- a/t/51-ini.t +++ b/t/51-ini.t @@ -1,11 +1,17 @@ -use Test::More tests => 2; +use Test::More tests => 6; use Config::Any::INI; -my $config = eval { Config::Any::INI->load( 't/conf/conf.ini' ) }; +my $config = eval { Config::Any::INI->load( 't/conf/conf.ini' ) }; +my $simpleconfig = eval { Config::Any::INI->load( 't/conf/conf2.ini' ) }; SKIP: { - skip "Couldn't Load INI plugin", 2 if $@; + skip "Couldn't Load INI plugin", 6 if $@; ok( $config ); is( $config->{ name }, 'TestApp' ); + is( $config->{Component}->{Controller::Foo}->{foo}, 'bar'); + + ok( $simpleconfig ); + is( $simpleconfig->{ name }, 'TestApp' ); + is( $simpleconfig->{Controller::Foo}->{foo}, 'bar' ); }