X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F96_is_deteministic_value.t;h=7828ffb52cb9b9238205b8746717ac00a6f36283;hb=d4a39575216302461a304c8c5211109ffb9d39f0;hp=43a9daa48338404599b1612ed45ac5aa5fd0bb02;hpb=c959e8d06362537fbc865d703786b399d0806212;p=dbsrgits%2FDBIx-Class.git diff --git a/t/96_is_deteministic_value.t b/t/96_is_deteministic_value.t index 43a9daa..7828ffb 100644 --- a/t/96_is_deteministic_value.t +++ b/t/96_is_deteministic_value.t @@ -1,16 +1,17 @@ use strict; use warnings; -# 6 tests - use Test::More; +use Test::Exception; + use lib qw(t/lib); use DBICTest; -use DateTime; -eval "use DateTime::Format::Strptime"; -plan skip_all => 'DateTime::Format::Strptime required' if $@; -plan 'no_plan'; -use Test::Exception; + +BEGIN { + require DBIx::Class; + plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_dt') + unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_dt'); +} my $schema = DBICTest->init_schema(); my $artist_rs = $schema->resultset('Artist'); @@ -63,5 +64,4 @@ my $cd_rs = $schema->resultset('CD'); is($artist->name, undef); } - -1; +done_testing;