X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fset_to_undef.t;h=149be2c5a50dd4d13b6b41947c88e666958b5ba9;hb=aa072cab54f2e6af9a9db82b3cdec0ebb97717cc;hp=2316bf82585db87ada44403d5a1165fb6ac3aaa1;hpb=68de943862f06cabd397d2e74d12cd9cdc999779;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/set_to_undef.t b/t/cdbi/set_to_undef.t index 2316bf8..149be2c 100644 --- a/t/cdbi/set_to_undef.t +++ b/t/cdbi/set_to_undef.t @@ -1,15 +1,12 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt cdbicompat ); + use strict; +use warnings; + use Test::More; use lib 't/cdbi/testlib'; -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; -} - - # Don't use Test::NoWarnings because of an unrelated DBD::SQLite warning. my @warnings; local $SIG{__WARN__} = sub { @@ -30,3 +27,5 @@ is $thing->get( "this" ), undef, 'undef set'; $thing->discard_changes; is @warnings, 0, 'no warnings'; + +done_testing;