From: Brian Cassidy Date: Fri, 10 Dec 2010 18:16:41 +0000 (+0000) Subject: fix t/64-extfail.t to pass when t/lib is in @INC X-Git-Tag: v0.21~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ccae701a16202e102e8bc521f1cdf00d0747042b;p=p5sagit%2FConfig-Any.git fix t/64-extfail.t to pass when t/lib is in @INC --- diff --git a/Changes b/Changes index e30eba0..42555ba 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Config-Any +0.21 TO BE RELEASED + - fix t/64-extfail.t to pass when t/lib is in @INC + 0.20 Fri 06 Aug 2010 - enable -ForceArray option by default for Config::General (caelum) diff --git a/lib/Config/Any.pm b/lib/Config/Any.pm index c7164cd..4033b49 100644 --- a/lib/Config/Any.pm +++ b/lib/Config/Any.pm @@ -6,7 +6,7 @@ use warnings; use Carp; use Module::Pluggable::Object (); -our $VERSION = '0.20'; +our $VERSION = '0.21'; =head1 NAME diff --git a/t/64-extfail.t b/t/64-extfail.t index d6cace8..a978051 100644 --- a/t/64-extfail.t +++ b/t/64-extfail.t @@ -8,14 +8,14 @@ use Config::Any; { my $result = eval { Config::Any->load_files( - { files => [ 't/conf/conf.unsupported' ], use_ext => 1 } ); + { files => [ 't/conf/conf.extfail' ], use_ext => 1 } ); }; ok( !defined $result, 'empty result' ); ok( $@, 'error thrown' ); like( $@, - qr/There are no loaders available for \.unsupported files/, + qr/There are no loaders available for \.extfail files/, 'error message' ); } diff --git a/t/conf/conf.extfail b/t/conf/conf.extfail new file mode 100644 index 0000000..1c61c46 --- /dev/null +++ b/t/conf/conf.extfail @@ -0,0 +1 @@ +Placeholder file for t/64-extfail.t