Adjust view-dependency tests to work on newer libsqlite
[dbsrgits/DBIx-Class.git] / t / cdbi / mk_group_accessors.t
index fa82c01..5fc1994 100644 (file)
@@ -1,10 +1,12 @@
+use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
+
 use strict;
+use warnings;
+
 use Test::More;
 
-INIT {
-    use lib 't/cdbi/testlib';
-    require Film;
-}
+use lib 't/cdbi/testlib';
+INIT { require Film }
 
 sub Film::get_test {
     my $self = shift;