X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fset_to_undef.t;h=5b642e026bb5c1e5c032006c0d9a058a23897edc;hb=b47fb9c0;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..5b642e0 100644 --- a/t/cdbi/set_to_undef.t +++ b/t/cdbi/set_to_undef.t @@ -1,16 +1,11 @@ +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;"; - plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@" - if $@; - plan skip_all => "DateTime required" unless eval { require DateTime }; - plan tests => 2; -} - - # Don't use Test::NoWarnings because of an unrelated DBD::SQLite warning. my @warnings; local $SIG{__WARN__} = sub { @@ -31,3 +26,5 @@ is $thing->get( "this" ), undef, 'undef set'; $thing->discard_changes; is @warnings, 0, 'no warnings'; + +done_testing;