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