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=eda0ae80c6c430d1420be0b769fe107b1789520b;hp=d00377bf4687d95586f01ef307f7d74458f8995a;hb=HEAD;hpb=26e3cdf4bbd7a8956984b64fe4f2ea9213a00e58 diff --git a/t/10-branches.t b/t/10-branches.t index d00377b..eda0ae8 100644 --- a/t/10-branches.t +++ b/t/10-branches.t @@ -1,10 +1,13 @@ use strict; use warnings; +no warnings 'once'; # use Test::Without::Module qw(YAML YAML::Syck Config::General XML::Simple JSON JSON::Syck Config::Tiny ); -use Test::More tests => 10; +use Test::More tests => 9; + +use Config::Any; +use Config::Any::YAML; -use_ok( 'Config::Any' ); { my @warnings; @@ -61,11 +64,11 @@ eval { Config::Any->load_files( { files => \@files, use_ext => 1, - filter => sub { die } + filter => sub { die "reject" } } ); }; -ok( $@, "filter breaks" ); +like $@, qr/reject/, "filter breaks"; my @stems = qw(t/supported/conf); ok( Config::Any->load_stems( { stems => \@stems, use_ext => 1 } ),