X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F71_column_object.t;h=54b0f418db03c600b4d4b29c79e845662b6edbb6;hb=c0329273268971824784f239f32c7246e68da9c5;hp=a97960f539d6dc10374faf42ba90e1a3ab7c04ab;hpb=fd0353ca5ea10e0445ce2d96c46202da01a1ab7e;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/71_column_object.t b/t/cdbi/71_column_object.t index a97960f..54b0f41 100644 --- a/t/cdbi/71_column_object.t +++ b/t/cdbi/71_column_object.t @@ -1,16 +1,15 @@ +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 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 lib 't/cdbi/testlib'; use ColumnObject; ok(ColumnObject->can('db_Main'), 'set_db()');