X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi-t%2F03-subclassing.t;h=9dc689b2eacd6ffc98e73c467ce51e2cc0df7738;hb=3fbe08e3152f04c6bb297c922b40a953dbdb3149;hp=fe427855d1b843283d94e05cdf76322e4863fa9e;hpb=289ba852733fc488dc43cd474f47780f7fa1771e;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi-t/03-subclassing.t b/t/cdbi-t/03-subclassing.t index fe42785..9dc689b 100644 --- a/t/cdbi-t/03-subclassing.t +++ b/t/cdbi-t/03-subclassing.t @@ -1,18 +1,18 @@ use strict; use Test::More; -BEGIN { - eval "use DBIx::Class::CDBICompat;"; - plan $@ ? (skip_all => 'Class::Trigger and DBIx::ContextualFetch required') : (tests=> 24); -} - #---------------------------------------------------------------------- # Make sure subclasses can be themselves subclassed #---------------------------------------------------------------------- BEGIN { - eval "use DBD::SQLite"; - plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6); + 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 => 6); } use lib 't/testlib';