made cdbi-t optional
[dbsrgits/DBIx-Class.git] / t / cdbi-t / 09-has_many.t
index 2ff2633..2af5485 100644 (file)
@@ -1,9 +1,12 @@
 use strict;
 use Test::More;
 
+
 BEGIN {
-       eval "use DBD::SQLite";
-       plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 30);
+  eval "use DBIx::Class::CDBICompat;";
+  plan skip_all => 'Class::Trigger and DBIx::ContextualFetch required' if $@;
+  eval "use DBD::SQLite";
+  plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 30);
 }