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=e5a62c46fad7960d70c8f7a825e7b10ff6ecf5c6;hp=fbb42335db892bba360c929b623f1f5a62dd7b9b;hpb=ede573ac79427d9905685866142e19074478994c;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/68-inflate_has_a.t b/t/cdbi/68-inflate_has_a.t index fbb4233..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/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; - -use lib qw(t/lib); -use DBICTest; - 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;