X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F64-extfail.t;fp=t%2F64-extfail.t;h=d6cace846e03d86f2b8136d1a61dfe1454325e30;hp=0000000000000000000000000000000000000000;hb=dcfb1d1d1a544d27a82cb174168df23abc539acb;hpb=4198bf8c36c5f90c71845bd2505d953d3422037e diff --git a/t/64-extfail.t b/t/64-extfail.t new file mode 100644 index 0000000..d6cace8 --- /dev/null +++ b/t/64-extfail.t @@ -0,0 +1,21 @@ +use strict; +use warnings; + +use Test::More tests => 3; + +use Config::Any; + +{ + my $result = eval { + Config::Any->load_files( + { files => [ 't/conf/conf.unsupported' ], use_ext => 1 } ); + }; + + ok( !defined $result, 'empty result' ); + ok( $@, 'error thrown' ); + like( + $@, + qr/There are no loaders available for \.unsupported files/, + 'error message' + ); +}