added a caveat regarding XML::Simple's strict mode (Peter Corlett)
[p5sagit/Config-Any.git] / t / 10-branches.t
index 90dc25b..8368bcc 100644 (file)
@@ -1,13 +1,15 @@
-use Test::More tests => 9;
-use Config::Any;
+use strict;
+use warnings;
 
-ok( !Config::Any->load_stems(), "load_stems expects args" );
+use Test::More tests => 10;
+
+use_ok( 'Config::Any' );
 
 {
     my @warnings;
     local $SIG{ __WARN__ } = sub { push @warnings, @_ };
 
-    Config::Any->load_files( );
+    Config::Any->load_files();
     like(
         shift @warnings,
         qr/^No files specified!/,
@@ -21,10 +23,17 @@ ok( !Config::Any->load_stems(), "load_stems expects args" );
         "load_files expects files"
     );
 
+    Config::Any->load_stems();
+    like(
+        shift @warnings,
+        qr/^No stems specified!/,
+        "load_stems expects args"
+    );
+
     Config::Any->load_stems( {} );
     like(
         shift @warnings,
-        qr/^no stems specified/,
+        qr/^No stems specified!/,
         "load_stems expects stems"
     );
 }