BEGIN {
eval "use DBIx::Class::CDBICompat;";
- plan $@ ? (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@")
- : ('no_plan');
+ plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@" if $@;
}
use lib 't/cdbi/testlib';
isa_ok $foo->{tdate}, 'Date::Simple';
is $foo->{tdate}->year, 1949;
-}
\ No newline at end of file
+}
+
+done_testing;