-use Test::More tests => 2;\r
+use Test::More tests => 6;\r
\r
use Config::Any::INI;\r
\r
-my $config = eval { Config::Any::INI->load( 't/conf/conf.ini' ) };\r
+my $config = eval { Config::Any::INI->load( 't/conf/conf.ini' ) };\r
+my $simpleconfig = eval { Config::Any::INI->load( 't/conf/conf2.ini' ) };\r
\r
SKIP: {\r
- skip "Couldn't Load INI plugin", 2 if $@;\r
+ skip "Couldn't Load INI plugin", 6 if $@;\r
ok( $config );\r
is( $config->{ name }, 'TestApp' );\r
+ is( $config->{Component}->{Controller::Foo}->{foo}, 'bar');\r
+ \r
+ ok( $simpleconfig );\r
+ is( $simpleconfig->{ name }, 'TestApp' );\r
+ is( $simpleconfig->{Controller::Foo}->{foo}, 'bar' );\r
}\r