Restore ability to handle underdefined root (t/prefetch/incomplete.t)
[dbsrgits/DBIx-Class.git] / t / cdbi / object_cache.t
index 896f8eb..c349940 100644 (file)
@@ -1,16 +1,8 @@
 use strict;
+use warnings;
 use Test::More;
 $| = 1;
 
-BEGIN {
-  eval "use DBIx::Class::CDBICompat;";
-  if ($@) {
-    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
-  }
-  
-  eval "use DBD::SQLite";
-  plan skip_all => 'needs DBD::SQLite for testing' if $@;
-}
 
 INIT {
     use lib 't/cdbi/testlib';
@@ -41,14 +33,14 @@ ok +Film->create({
 
 {
     Film->nocache(1);
-    
+
     my $film1 = Film->retrieve( "This Is Spinal Tap" );
     my $film2 = Film->retrieve( "This Is Spinal Tap" );
 
     $film1->Director("Marty DiBergi");
     is $film2->Director, "Rob Reiner",
        'caching turned off';
-    
+
     $film1->discard_changes;
 }
 
@@ -80,3 +72,5 @@ ok +Film->create({
 
     $film1->discard_changes;
 }
+
+done_testing;