add TODO on constraint check
[dbsrgits/DBIx-Class.git] / t / cdbi-t / 03-subclassing.t
index 75b70d6..9dc689b 100644 (file)
@@ -6,8 +6,13 @@ use Test::More;
 #----------------------------------------------------------------------
 
 BEGIN {
-       eval "use DBD::SQLite";
-       plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6);
+  eval "use DBIx::Class::CDBICompat;";
+  if ($@) {
+    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
+    next;
+  }
+  eval "use DBD::SQLite";
+  plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6);
 }
 
 use lib 't/testlib';