Remove superfluous TODO test
[dbsrgits/DBIx-Class-Historic.git] / t / cdbi-DeepAbstractSearch / 01_search.t
index 825b67c..6826bb9 100755 (executable)
@@ -2,9 +2,19 @@ use strict;
 use Test::More;
 
 BEGIN {
-    eval "use DBD::SQLite";
-    plan $@ ? (skip_all => 'needs DBD::SQLite for testing')
-    : (tests => 19);
+    eval "use DBIx::Class::CDBICompat;";
+    if ($@) {
+        plan (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@");
+        next;
+    }
+
+    plan skip_all => 'needs DBD::SQLite for testing'
+        unless eval { require DBD::SQLite };
+    
+    plan skip_all => 'needs Class::DBI::Plugin::DeepAbstractSearch'
+        unless eval { require Class::DBI::Plugin::DeepAbstractSearch };
+    
+    plan tests => 19;
 }
 
 my $DB  = "t/testdb";