Pg version check for can_insert_returning
[dbsrgits/DBIx-Class-Historic.git] / t / 02pod.t
1 use warnings;
2 use strict;
3
4 use Test::More;
5 use lib qw(t/lib);
6 use DBICTest;
7
8 # Don't run tests for installs
9 unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) {
10   plan( skip_all => "Author tests not required for installation" );
11 }
12
13 require DBIx::Class;
14 unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_pod') ) {
15   my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_pod');
16   $ENV{RELEASE_TESTING} || DBICTest::AuthorCheck->is_author
17     ? die ("Failed to load release-testing module requirements: $missing")
18     : plan skip_all => "Test needs: $missing"
19 }
20
21 Test::Pod::all_pod_files_ok();