t/91-meta: fallback to Test::CPAN::Meta
[perl/plp/.git] / t / 91-meta.t
index d5e720b6791745bc87f7407a38ee85930ba18e90..31c5f62dd8e9e5f6af40d869b739ef60240a0d6b 100644 (file)
@@ -2,10 +2,13 @@ use strict;
 use warnings;
 
 use Test::More;
-eval 'use Test::YAML::Meta';
-plan skip_all => "Test::YAML::Meta required to test META.yml" if $@;
-plan skip_all => "Test::YAML::Meta v0.10 required to test META.yml correctly"
-       if $Test::YAML::Meta::VERSION < 0.10;
+
+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();