Commit | Line | Data |
8587679b |
1 | use Test::More tests => 6;\r |
572501ab |
2 | \r |
3 | use Config::Any::INI;\r |
4 | \r |
8587679b |
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 |
572501ab |
7 | \r |
8 | SKIP: {\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 |