The functionality introduced in 7ad80222 requires a certain CDBI
[dbsrgits/DBIx-Class-Historic.git] / t / cdbi / 71_column_object.t
index cc998c3..a97960f 100644 (file)
@@ -1,12 +1,16 @@
 use strict;
 use warnings;
 
+use Test::More;
+use lib 't/cdbi/testlib';
+
 # Columns in CDBI could be defined as Class::DBI::Column objects rather than
 # or as well as with __PACKAGE__->columns();
+BEGIN {
+  eval { require Class::DBI and Class::DBI->VERSION('3.0.5') }
+    or plan skip_all => 'The tested functionality is only available in Class::DBI >= 3.0.5'
+}
 
-use Test::More;
-
-use lib 't/cdbi/testlib';
 use ColumnObject;
 
 ok(ColumnObject->can('db_Main'), 'set_db()');