Make sure the taint test does some DB-level ops
[dbsrgits/DBIx-Class.git] / t / 96_is_deteministic_value.t
index 6e04252..d71886b 100644 (file)
@@ -1,14 +1,17 @@
 use strict;
 use warnings;
 
-# 6 tests
+use Test::More;
+use Test::Exception;
 
-use Test::More qw(no_plan);
 use lib qw(t/lib);
 use DBICTest;
-use DateTime;
-use DateTime::Format::Strptime;
-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');
@@ -55,11 +58,10 @@ my $cd_rs = $schema->resultset('CD');
 {
   my $artist;
   lives_ok {
-    $artist = $artist_rs->search({ name => [ q/ some stupid names here/]})
+    $artist = $artist_rs->search({ name => [ qw(some stupid names here) ]})
       ->create({artistid => undef});
   };
   is($artist->name, undef);
 }
 
-
-1;
+done_testing;