Get rid of Package::Stash \o/
[dbsrgits/DBIx-Class.git] / t / cdbi / object_cache.t
index f79d26e..378395a 100644 (file)
@@ -1,5 +1,9 @@
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
+
 use strict;
 use warnings;
+
 use Test::More;
 $| = 1;
 
@@ -7,12 +11,6 @@ $| = 1;
 use lib 't/cdbi/testlib';
 use Film;
 
-plan skip_all => "Object cache is turned off"
-    if Film->isa("DBIx::Class::CDBICompat::NoObjectIndex");
-
-plan tests => 5;
-
-
 ok +Film->create({
     Title       => 'This Is Spinal Tap',
     Director    => 'Rob Reiner',