X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fset_to_undef.t;h=03fe0ca4e3fb24e29904944fb0f5652a35ccda60;hb=fa19e5d684ce8181f2fa2e0cd79bed14de889650;hp=47b0a357d07baba4416d488992238eca5e18b7f9;hpb=97d61088b16ce8d2ffcbb4a2433509d65f7f7449;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/set_to_undef.t b/t/cdbi/set_to_undef.t index 47b0a35..03fe0ca 100644 --- a/t/cdbi/set_to_undef.t +++ b/t/cdbi/set_to_undef.t @@ -1,13 +1,13 @@ use strict; +use warnings; 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;"; - plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@" - if $@; - plan skip_all => "DateTime required" unless eval { require DateTime }; - plan tests => 2; + eval { require DateTime; DateTime->VERSION(0.55) } + or plan skip_all => 'DateTime 0.55 required for this test'; } @@ -31,3 +31,5 @@ is $thing->get( "this" ), undef, 'undef set'; $thing->discard_changes; is @warnings, 0, 'no warnings'; + +done_testing;