X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Finflate%2Fdatetime_determine_parser.t;h=802c30eb3fa5f19038540dca51204c1f1449a89e;hb=68de943862f06cabd397d2e74d12cd9cdc999779;hp=380242d54b5dd6072fc025e229fb1b69708841da;hpb=2dc8d9618fd296ecdd4484d3686832de0592e747;p=dbsrgits%2FDBIx-Class.git diff --git a/t/inflate/datetime_determine_parser.t b/t/inflate/datetime_determine_parser.t index 380242d..802c30e 100644 --- a/t/inflate/datetime_determine_parser.t +++ b/t/inflate/datetime_determine_parser.t @@ -1,13 +1,12 @@ use strict; -use warnings; +use warnings; use Test::More; use lib qw(t/lib); use DBICTest; -eval { require DateTime::Format::SQLite }; -plan $@ ? ( skip_all => 'Requires DateTime::Format::SQLite' ) - : ( tests => 3 ); +plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_dt_sqlite') + unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_dt_sqlite'); my $schema = DBICTest->init_schema( no_deploy => 1, # Deploying would cause an early rebless @@ -26,3 +25,4 @@ my $parser = $schema->storage->datetime_parser(); is($parser, 'DateTime::Format::SQLite', 'Got expected storage-set datetime_parser'); isa_ok($schema->storage, 'DBIx::Class::Storage::DBI::SQLite', 'storage'); +done_testing;