Release commit for 0.30
[p5sagit/Config-Any.git] / t / 10-branches.t
index 4ffdff5..40df34b 100644 (file)
@@ -1,9 +1,13 @@
 use strict;
 use warnings;
+no warnings 'once';
 
-use Test::More tests => 10;
+# use Test::Without::Module qw(YAML YAML::Syck Config::General XML::Simple JSON JSON::Syck Config::Tiny );
+use Test::More tests => 11;
 
 use_ok( 'Config::Any' );
+use_ok( 'Config::Any::YAML' );
+
 
 {
     my @warnings;
@@ -38,10 +42,14 @@ use_ok( 'Config::Any' );
     );
 }
 
-# can only be sure that perl files will load
-my @files = ( 't/conf/conf.pl' );
-ok( Config::Any->load_files( { files => \@files, use_ext => 0 } ),
-    "use_ext 0 works" );
+my @files = glob( "t/supported/conf.*" );
+{
+    require Config::Any::General;
+    local $SIG{ __WARN__ } = sub { }
+        if Config::Any::General->is_supported;
+    ok( Config::Any->load_files( { files => \@files, use_ext => 0 } ),
+        "use_ext 0 works" );
+}
 
 my $filter = sub { return };
 ok( Config::Any->load_files( { files => \@files, use_ext => 1 } ),
@@ -62,6 +70,6 @@ eval {
 };
 ok( $@, "filter breaks" );
 
-my @stems = qw(t/conf/conf);
+my @stems = qw(t/supported/conf);
 ok( Config::Any->load_stems( { stems => \@stems, use_ext => 1 } ),
     "load_stems with stems works" );