From: Karen Etheridge Date: Tue, 24 Aug 2010 23:57:30 +0000 (-0700) Subject: more convert to using Test::Requires X-Git-Tag: v0.18~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8379d024516507112f1b1537aaaa557ff9cd120;p=gitmo%2FMooseX-ClassAttribute.git more convert to using Test::Requires --- diff --git a/xt/release/pod-coverage.t b/xt/release/pod-coverage.t index b6eda97..0802ee0 100644 --- a/xt/release/pod-coverage.t +++ b/xt/release/pod-coverage.t @@ -3,9 +3,9 @@ use warnings; use Test::More; -eval "use Test::Pod::Coverage 1.04"; -plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" - if $@; +use Test::Requires { + 'Test::Pod::Coverage' => '1.04', # skip all if not installed +}; # This is a stripped down version of all_pod_coverage_ok which lets us # vary the trustme parameter per module. diff --git a/xt/release/pod-spell.t b/xt/release/pod-spell.t index 13b6444..a8dd89d 100644 --- a/xt/release/pod-spell.t +++ b/xt/release/pod-spell.t @@ -3,9 +3,9 @@ use warnings; use Test::More; -eval "use Test::Spelling"; -plan skip_all => "Test::Spelling required for testing POD coverage" - if $@; +use Test::Requires { + 'Test::Spelling' => '0.01', # skip all if not installed +}; my @stopwords; for () { diff --git a/xt/release/pod.t b/xt/release/pod.t index 69d8e60..a75a7bb 100644 --- a/xt/release/pod.t +++ b/xt/release/pod.t @@ -3,7 +3,8 @@ use warnings; use Test::More; -eval "use Test::Pod 1.14"; -plan skip_all => "Test::Pod 1.14 required for testing POD" if $@; +use Test::Requires { + 'Test::Pod' => '1.14', # skip all if not installed +}; all_pod_files_ok();