X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi-t%2F15-accessor.t;h=e683f7db091421d22bbe30893c4685b4e3006562;hb=3a868fb29b0bb50a7216f770cc9a71d358d67431;hp=35cf44d0586f833816d66379ce9d5904fe4f7b10;hpb=9bc6db133eae500322e0e3670d5509d27d208f9e;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/cdbi-t/15-accessor.t b/t/cdbi-t/15-accessor.t index 35cf44d..e683f7d 100644 --- a/t/cdbi-t/15-accessor.t +++ b/t/cdbi-t/15-accessor.t @@ -2,8 +2,13 @@ use strict; use Test::More; BEGIN { - eval "use DBD::SQLite"; - plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 55); + 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 => 53); } INIT { @@ -127,7 +132,7 @@ eval { } SKIP: { # have non persistent accessor? - skip "Compat layer doesn't handle TEMP columns yet", 11; + #skip "Compat layer doesn't handle TEMP columns yet", 11; Film->columns(TEMP => qw/nonpersistent/); ok(Film->find_column('nonpersistent'), "nonpersistent is a column"); ok(!Film->has_real_column('nonpersistent'), " - but it's not real"); @@ -148,7 +153,7 @@ SKIP: { # have non persistent accessor? } SKIP: { # was bug with TEMP and no Essential - skip "Compat layer doesn't have TEMP columns yet", 5; + #skip "Compat layer doesn't have TEMP columns yet", 5; is_deeply( Actor->columns('Essential'), Actor->columns('Primary'), @@ -162,7 +167,7 @@ SKIP: { # was bug with TEMP and no Essential } SKIP: { - skip "Compat layer doesn't handle read-only objects yet", 10; + #skip "Compat layer doesn't handle read-only objects yet", 10; Film->autoupdate(1); my $naked = Film->create({ title => 'Naked' }); my $sandl = Film->create({ title => 'Secrets and Lies' }); @@ -190,6 +195,3 @@ SKIP: { like $@, qr/read only/, "Or create new films"; $SIG{__WARN__} = sub { }; } - -SKIP: { skip "Lost a test adding skips somewhere, sorry", 2 } -