further changes to the Sybase / MSSQL storage stuff
[dbsrgits/DBIx-Class.git] / t / cdbi-t / 19-set_sql.t
index 2278cd4..36b66af 100644 (file)
@@ -2,8 +2,13 @@ use strict;
 use Test::More;
 
 BEGIN {
-       eval "use DBD::SQLite";
-       plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 17);
+  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 => 17);
 }
 
 use lib 't/testlib';
@@ -62,8 +67,6 @@ Film->set_sql(
        is $pgs[1]->id, $f4->id, "and F4";
 };
 
-SKIP: {
-  skip "DBIx::Class doesn't have has_a yet", 6;
 {
        Actor->has_a(film => "Film");
        Film->set_sql(
@@ -106,4 +109,4 @@ SKIP: {
        is $apg[1]->title, "B", "and B";
 }
 
-} # end SKIP block
+#} # end SKIP block