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
CommitLineData
8587679b 1use Test::More tests => 6;\r
572501ab 2\r
3use Config::Any::INI;\r
4\r
8587679b 5my $config = eval { Config::Any::INI->load( 't/conf/conf.ini' ) };\r
6my $simpleconfig = eval { Config::Any::INI->load( 't/conf/conf2.ini' ) };\r
572501ab 7\r
8SKIP: {\r
8587679b 9 skip "Couldn't Load INI plugin", 6 if $@;\r
572501ab 10 ok( $config );\r
11 is( $config->{ name }, 'TestApp' );\r
8587679b 12 is( $config->{Component}->{Controller::Foo}->{foo}, 'bar');\r
13 \r
14 ok( $simpleconfig );\r
15 is( $simpleconfig->{ name }, 'TestApp' );\r
16 is( $simpleconfig->{Controller::Foo}->{foo}, 'bar' );\r
572501ab 17}\r