X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2Finflate%2Fdatetime.t;h=2f4f7406032ee4cc29fab0d07e69c338efedf1e3;hp=ae8fc3bc91d7d87b2347b0b5fdd0521e128a5ea3;hb=68de943862f06cabd397d2e74d12cd9cdc999779;hpb=67b79ae10d09c925c0e120e9de21758f388c8e70 diff --git a/t/inflate/datetime.t b/t/inflate/datetime.t index ae8fc3b..2f4f740 100644 --- a/t/inflate/datetime.t +++ b/t/inflate/datetime.t @@ -7,11 +7,8 @@ use DBICTest; my $schema = DBICTest->init_schema(); -eval { require DateTime::Format::SQLite }; -plan $@ - ? ( skip_all => "Need DateTime::Format::SQLite for DT inflation tests" ) - : ( tests => 18 ) -; +plan skip_all => 'DT inflation tests need ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_dt') + unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_dt'); # inflation test my $event = $schema->resultset("Event")->find(1); @@ -74,3 +71,5 @@ is("$varchar_datetime", '2006-05-22T19:05:07', 'Correct date/time'); ## skip inflation field my $skip_inflation = $event->skip_inflation; is ("$skip_inflation", '2006-04-21 18:04:06', 'Correct date/time'); + +done_testing;