From: Peter Rabbitson Date: Fri, 26 Sep 2014 02:22:41 +0000 (+0200) Subject: The functionality introduced in 7ad80222 requires a certain CDBI X-Git-Tag: v0.082801~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd0353ca5ea10e0445ce2d96c46202da01a1ab7e;p=dbsrgits%2FDBIx-Class.git The functionality introduced in 7ad80222 requires a certain CDBI Skip it on older versions (wow - people *do* run these in the wild) https://metacpan.org/source/TMTM/Class-DBI-v3.0.5/Changes#L6 --- diff --git a/t/cdbi/71_column_object.t b/t/cdbi/71_column_object.t index cc998c3..a97960f 100644 --- a/t/cdbi/71_column_object.t +++ b/t/cdbi/71_column_object.t @@ -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()');