17b5bcd351d03a57fd2616cc9cf53f649fc358d5
[p5sagit/Config-Any.git] / t / 51-ini.t
1 use Test::More tests => 6;\r
2 \r
3 use Config::Any::INI;\r
4 \r
5 my $config =       eval { Config::Any::INI->load( 't/conf/conf.ini' ) };\r
6 my $simpleconfig = eval { Config::Any::INI->load( 't/conf/conf2.ini' ) };\r
7 \r
8 SKIP: {\r
9     skip "Couldn't Load INI plugin", 6 if $@;\r
10     ok( $config );\r
11     is( $config->{ name }, 'TestApp' );\r
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
17 }\r