Adjust view-dependency tests to work on newer libsqlite
[dbsrgits/DBIx-Class.git] / t / cdbi / construct.t
index 3e364b3..d10e6a1 100644 (file)
@@ -1,16 +1,12 @@
+use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
+
 use strict;
-use Test::More;
+use warnings;
 
-BEGIN {
-  eval "use DBIx::Class::CDBICompat;";
-  plan $@ ? (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@")
-          : (tests=> 5);
-}
+use Test::More;
 
-INIT {
-    use lib 't/cdbi/testlib';
-    use Film;
-}
+use lib 't/cdbi/testlib';
+use Film;
 
 {
     Film->insert({
@@ -41,3 +37,5 @@ INIT {
 
     ::is $film->temp_thing, 23, "construct sets temp columns";
 }
+
+done_testing;