X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02pod.t;h=8d99a662321f96a309c13b4a63de94299dc4fc2b;hb=406a97c2aab476c7a52f7c623a95f275eeb376f3;hp=1647794510bbde7dd741a90c23c802cb3fc4fc3a;hpb=4a79bee13f3be3b58491cbfc4e95245cdc49688c;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/02pod.t b/t/02pod.t index 1647794..8d99a66 100644 --- a/t/02pod.t +++ b/t/02pod.t @@ -1,7 +1,20 @@ +#!perl + +use strict; +use warnings; + use Test::More; -eval "use Test::Pod 1.14"; -plan skip_all => 'Test::Pod 1.14 required' if $@; -plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD}; +BEGIN { + use DBIx::Class::Schema::Loader::Optional::Dependencies (); + if (DBIx::Class::Schema::Loader::Optional::Dependencies->req_ok_for('test_pod')) { + Test::Pod->import; + } + else { + plan skip_all => 'Tests needs ' . DBIx::Class::Schema::Loader::Optional::Dependencies->req_missing_for('test_pod') + } +} all_pod_files_ok(); + +# vim:tw=0 sw=4 et sts=4: