From: Mischa POSLAWSKY Date: Wed, 20 Nov 2013 10:15:15 +0000 (+0100) Subject: t/91-meta: fallback to Test::CPAN::Meta X-Git-Tag: 3.24~5 X-Git-Url: http://git.shiar.net/perl/plp/.git/commitdiff_plain/07db47574b0c884a7988b405b17986c29c133248 t/91-meta: fallback to Test::CPAN::Meta --- diff --git a/t/91-meta.t b/t/91-meta.t index 09447c1..31c5f62 100644 --- a/t/91-meta.t +++ b/t/91-meta.t @@ -2,10 +2,13 @@ use strict; use warnings; use Test::More; -eval 'use Test::CPAN::Meta::YAML'; -plan skip_all => "Test::CPAN::Meta::YAML required to test META.yml" if $@; -plan skip_all => "Test::CPAN::Meta::YAML v0.13 required to test META.yml correctly" - if $Test::CPAN::Meta::YAML::VERSION < 0.13; + +my @metatesters = ( + 'Test::CPAN::Meta::YAML 0.13', + 'Test::CPAN::Meta 0.14', +); +eval "use $_" and last for @metatesters; +plan skip_all => "Test::CPAN::Meta(::YAML) required to test META.yml" if $@; meta_yaml_ok();