t/91-meta: fallback to Test::CPAN::Meta
[perl/plp/.git] / t / 91-meta.t
index 09447c10b45d384e43d15e520465443642654195..31c5f62dd8e9e5f6af40d869b739ef60240a0d6b 100644 (file)
@@ -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();