Massive cleanup of DateTime test dependencies, other interim
[dbsrgits/DBIx-Class.git] / t / 96_is_deteministic_value.t
index 6e04252..840a1c5 100644 (file)
@@ -1,14 +1,17 @@
 use strict;
 use warnings;
 
-# 6 tests
+use Test::More;
+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');
+}
 
-use Test::More qw(no_plan);
 use lib qw(t/lib);
 use DBICTest;
-use DateTime;
-use DateTime::Format::Strptime;
-use Test::Exception;
 
 my $schema = DBICTest->init_schema();
 my $artist_rs = $schema->resultset('Artist');
@@ -61,5 +64,4 @@ my $cd_rs = $schema->resultset('CD');
   is($artist->name, undef);
 }
 
-
-1;
+done_testing;