X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fset_to_undef.t;fp=t%2Fcdbi%2Fset_to_undef.t;h=20fe77b67cc36f560f1990acc3a26769e438e4ed;hb=d9bd51956470404b3960871d3413fa98f16961d2;hp=2316bf82585db87ada44403d5a1165fb6ac3aaa1;hpb=aea59b74d807ee65b319f3c1f84709157e12926b;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/set_to_undef.t b/t/cdbi/set_to_undef.t index 2316bf8..20fe77b 100644 --- a/t/cdbi/set_to_undef.t +++ b/t/cdbi/set_to_undef.t @@ -1,12 +1,12 @@ use strict; use Test::More; + use lib 't/cdbi/testlib'; +use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs BEGIN { - eval "use DBIx::Class::CDBICompat;use DateTime 0.55;"; - plan skip_all => "DateTime 0.55, Class::Trigger and DBIx::ContextualFetch required: $@" - if $@; - plan tests => 2; + eval { require DateTime; DateTime->VERSION(0.55) } + or plan skip_all => 'DateTime 0.55 required for this test'; } @@ -30,3 +30,5 @@ is $thing->get( "this" ), undef, 'undef set'; $thing->discard_changes; is @warnings, 0, 'no warnings'; + +done_testing;