Fix incorrect data returned in a corner case of partial-select HRI
[dbsrgits/DBIx-Class-Historic.git] / t / cdbi / 71_column_object.t
index 045b07a..54b0f41 100644 (file)
@@ -1,15 +1,13 @@
-use strict;
-use warnings;
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
 
 # Columns in CDBI could be defined as Class::DBI::Column objects rather than
 # or as well as with __PACKAGE__->columns();
+use DBIx::Class::Optional::Dependencies -skip_all_without => qw( cdbicompat Class::DBI>=3.000005 );
 
-use Test::More;
+use strict;
+use warnings;
 
-BEGIN {
-  eval { require Class::DBI::Column }
-    or plan skip_all => 'Class::DBI::Column required for this test';
-}
+use Test::More;
 
 use lib 't/cdbi/testlib';
 use ColumnObject;