added some branch exercising tests in 10-branches.t and 51-ini.t, and a second INI...
[p5sagit/Config-Any.git] / t / 51-ini.t
index 206d1a7..17b5bcd 100644 (file)
@@ -1,11 +1,17 @@
-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