update changes file
[p5sagit/Config-Any.git] / t / 10-branches.t
index b70d726..b211876 100644 (file)
@@ -1,3 +1,6 @@
+use strict;
+use warnings;
+
 use Test::More tests => 10;
 
 use_ok( 'Config::Any' );
@@ -6,7 +9,7 @@ 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!/,
@@ -20,7 +23,7 @@ use_ok( 'Config::Any' );
         "load_files expects files"
     );
 
-    Config::Any->load_stems( );
+    Config::Any->load_stems();
     like(
         shift @warnings,
         qr/^No stems specified!/,
@@ -35,7 +38,8 @@ use_ok( 'Config::Any' );
     );
 }
 
-my @files = glob( "t/conf/conf.*" );
+# grep out files we don't understand for these tests
+my @files = grep { !m{\.(foo|unsupported)$} } glob( "t/conf/conf.*" );
 my $filter = sub { return };
 ok( Config::Any->load_files( { files => \@files, use_ext => 0 } ),
     "use_ext 0 works" );