+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 {
$thing->discard_changes;
is @warnings, 0, 'no warnings';
+
+done_testing;