DBIx::Class::Schema::Loader::Optional::Dependencies->_gen_pod(undef, 'lib');
+ author_tests( 'xt' );
readme_from( 'lib/DBIx/Class/Schema/Loader.pm' );
realclean_files( qw[README MANIFEST lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod] );
}
+++ /dev/null
-#!perl
-
-use strict;
-use warnings;
-
-use Test::More;
-
-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:
--- /dev/null
+use DBIx::Class::Schema::Loader::Optional::Dependencies
+ -skip_all_without => 'test_pod';
+
+use warnings;
+use strict;
+
+use Test::More;
+use lib qw(t/lib);
+
+# this has already been required but leave it here for CPANTS static analysis
+require Test::Pod;
+
+Test::Pod::all_pod_files_ok( 'lib', 'script' );