X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F10-branches.t;h=f82303bbc69daf22d70a073dba5f53b9c89f73cf;hp=8368bcc984f46cd2306b27b2e819a6a8a7d9967c;hb=766100bdb8cc2f48b73464a9364a1dab276d186e;hpb=5a2e0210fe5c7da046be37b4240008f2b667be67 diff --git a/t/10-branches.t b/t/10-branches.t index 8368bcc..f82303b 100644 --- a/t/10-branches.t +++ b/t/10-branches.t @@ -1,6 +1,7 @@ use strict; use warnings; +# use Test::Without::Module qw(YAML YAML::Syck Config::General XML::Simple JSON JSON::Syck Config::Tiny ); use Test::More tests => 10; use_ok( 'Config::Any' ); @@ -38,10 +39,11 @@ use_ok( 'Config::Any' ); ); } -my @files = glob( "t/conf/conf.*" ); -my $filter = sub { return }; +my @files = glob( "t/supported/conf.*" ); 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 } ), "use_ext 1 works" ); @@ -60,6 +62,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" );