X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fobject_cache.t;h=378395aead2c762f6e91a6a68e6e727ee1b8af02;hb=616ca57f8cd27f475da275bbef986fdd42d4069f;hp=c3499403cf629c46b1f9c581b4a720040240f054;hpb=4a233f3019d2baa4bf2abee0c873c74d5cdf3a11;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/object_cache.t b/t/cdbi/object_cache.t index c349940..378395a 100644 --- a/t/cdbi/object_cache.t +++ b/t/cdbi/object_cache.t @@ -1,19 +1,15 @@ +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; -INIT { - 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; - +use lib 't/cdbi/testlib'; +use Film; ok +Film->create({ Title => 'This Is Spinal Tap',