Skip to content

Commit

Permalink
fix t/64-extfail.t to pass when t/lib is in @inc
Browse files Browse the repository at this point in the history
  • Loading branch information
bricas committed Dec 10, 2010
1 parent 0708945 commit ccae701
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion lib/Config/Any.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use warnings;
use Carp;
use Module::Pluggable::Object ();

our $VERSION = '0.20';
our $VERSION = '0.21';

=head1 NAME
Expand Down
4 changes: 2 additions & 2 deletions t/64-extfail.t
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}
1 change: 1 addition & 0 deletions t/conf/conf.extfail
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Placeholder file for t/64-extfail.t

0 comments on commit ccae701

Please sign in to comment.