t/91-meta: fallback to Test::CPAN::Meta
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 20 Nov 2013 10:15:15 +0000 (11:15 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 20 Nov 2013 11:16:00 +0000 (12:16 +0100)
t/91-meta.t

index 09447c10b45d384e43d15e520465443642654195..31c5f62dd8e9e5f6af40d869b739ef60240a0d6b 100644 (file)
@@ -2,10 +2,13 @@ use strict;
 use warnings;
 
 use Test::More;
 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();
 
 
 meta_yaml_ok();