X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02pod.t;fp=t%2F02pod.t;h=8d99a662321f96a309c13b4a63de94299dc4fc2b;hb=a04e5e2cd5adbde04100b3cb0900ba75adc75f99;hp=ddc29056b297d056e8bcf047077e3e73fb88384f;hpb=5079917060b661b6e344c03c3151e4e210a8859e;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/02pod.t b/t/02pod.t index ddc2905..8d99a66 100644 --- a/t/02pod.t +++ b/t/02pod.t @@ -1,6 +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 $@; +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: