Adjust view-dependency tests to work on newer libsqlite
[dbsrgits/DBIx-Class.git] / t / cdbi / mk_group_accessors.t
index debd8d5..5fc1994 100644 (file)
@@ -1,18 +1,12 @@
-use strict;
-use Test::More;
+use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
 
-BEGIN {
-    eval "use DBIx::Class::CDBICompat;";
-    plan skip_all => 'Class::Trigger and DBIx::ContextualFetch required' if $@;
+use strict;
+use warnings;
 
-    eval "use DBD::SQLite";
-    plan skip_all => 'needs DBD::SQLite for testing' if $@;
-}
+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;