From 07db47574b0c884a7988b405b17986c29c133248 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 20 Nov 2013 11:15:15 +0100 Subject: [PATCH] t/91-meta: fallback to Test::CPAN::Meta --- t/91-meta.t | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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(); -- 2.30.0