plan skip_all => 'Config::General format not supported';
}
else {
- plan tests => 4;
+ plan tests => 6;
}
{
{ -LowerCaseNames => 1 } );
ok( exists $config->{ component } );
}
+
+# test invalid config
+{
+ my $file = 't/invalid/conf.conf';
+ my $config = eval { Config::Any::General->load( $file ) };
+
+ ok( !$config, 'config load failed' );
+ ok( $@, "error thrown ($@)" );
+}