X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi-t%2Fobject_cache.t;h=295bde61c0337a4b53ed310332445b4dd06a4264;hb=62050a02c0c34ecd6bf2987ffaa40d9989d180b6;hp=e194a31da869e83f83ea378db7c47824b68914dc;hpb=592cd0b14f34975ca95be9f9fb8a6926d19a7b86;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi-t/object_cache.t b/t/cdbi-t/object_cache.t index e194a31..295bde6 100644 --- a/t/cdbi-t/object_cache.t +++ b/t/cdbi-t/object_cache.t @@ -6,10 +6,10 @@ 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 => 5); + plan skip_all => 'needs DBD::SQLite for testing' if $@; } INIT { @@ -17,6 +17,12 @@ INIT { 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',