The fix in f9b5239ac was both shortsighted and insufficient
[dbsrgits/DBIx-Class.git] / t / cdbi / max_min_value_of.t
index 4b23608..5dc2f1a 100644 (file)
@@ -1,20 +1,11 @@
 use strict;
+use warnings;
 use Test::More;
 
 #----------------------------------------------------------------------
 # Test database failures
 #----------------------------------------------------------------------
 
-BEGIN {
-  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 => 2);
-}
-
 use lib 't/cdbi/testlib';
 use Film;
 
@@ -30,3 +21,5 @@ Film->create({
 
 is( Film->maximum_value_of("numexplodingsheep"), 10 );
 is( Film->minimum_value_of("numexplodingsheep"), 2  );
+
+done_testing;