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=96d4cabb90422850d940835861c63020b3629eaf;hb=3a4895023ae6455d2fdef716214e94c3e3ddfdcc;hpb=e7be073ac39914776ae469d6d1b51b666f6210d5 diff --git a/t/10-branches.t b/t/10-branches.t index 96d4cab..eda0ae8 100644 --- a/t/10-branches.t +++ b/t/10-branches.t @@ -3,12 +3,11 @@ 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 => 11; +use Test::More tests => 9; -use_ok( 'Config::Any' ); -use_ok( 'Config::Any::YAML' ); +use Config::Any; +use Config::Any::YAML; -$Config::Any::YAML::NO_YAML_XS_WARNING = 1; { my @warnings; @@ -65,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 } ),