X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F68-inflate_has_a.t;h=04abccb4cf9adac54359ef5fa3fa8486991debca;hb=d9bd5195;hp=3b3a03fc02244aecfc097480c04a0dd42c3a5b41;hpb=aea59b74d807ee65b319f3c1f84709157e12926b;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/68-inflate_has_a.t b/t/cdbi/68-inflate_has_a.t index 3b3a03f..04abccb 100644 --- a/t/cdbi/68-inflate_has_a.t +++ b/t/cdbi/68-inflate_has_a.t @@ -2,17 +2,14 @@ use strict; use warnings; use Test::More; -use lib qw(t/lib); -use DBICTest; +use lib qw(t/cdbi/testlib); +use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs BEGIN { - eval "use DBIx::Class::CDBICompat; use DateTime 0.55; use Clone;"; - plan skip_all => "Clone, DateTime 0.55, Class::Trigger and DBIx::ContextualFetch required" - if $@; + eval { require DateTime; DateTime->VERSION(0.55) } + or plan skip_all => 'DateTime 0.55 required for this test'; } -plan tests => 6; - my $schema = DBICTest->init_schema(); DBICTest::Schema::CD->load_components(qw/CDBICompat::Relationships/); @@ -59,3 +56,4 @@ $cd->update; ($cd) = $schema->resultset("CD")->search({ year => $now->year }); is( $cd->year->year, $now->year, 'deflate ok' ); +done_testing;