more code updates, before i look in depth at the _load() routine
[p5sagit/Config-Any.git] / t / 50-general.t
index cf334cb..e684bf2 100644 (file)
@@ -1,11 +1,19 @@
-use Test::More tests => 2;\r
-\r
-use Config::Any::General;\r
-\r
-my $config = eval { Config::Any::General->load( 't/conf/conf.conf' ) };\r
-\r
-SKIP: {\r
-    skip "Couldn't Load Config::General plugin", 2 if $@;\r
-    ok( $config );\r
-    is( $config->{ name }, 'TestApp' );\r
-}\r
+use Test::More tests => 4;
+
+use Config::Any::General;
+
+my $config = eval { Config::Any::General->load( 't/conf/conf.conf' ) };
+
+SKIP: {
+    skip "Couldn't Load Config::General plugin", 4 if $@;
+    ok( $config );
+    is( $config->{ name }, 'TestApp' );
+    ok( exists $config->{ Component } );
+
+    $config = eval {
+        Config::Any::General->load( 't/conf/conf.conf',
+            { -LowerCaseNames => 1 } );
+    };
+
+    ok( exists $config->{ component } );
+}