X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi-sweet-t%2F08pager.t;h=96503150fc45097c009e6baf51607eceb5ba6f26;hb=289ba852733fc488dc43cd474f47780f7fa1771e;hp=ea77d81bbef6138fd343ab8975fde6907c3b0d93;hpb=701da8c4d6f0b78ffc015085aa410a6cacfcdb40;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi-sweet-t/08pager.t b/t/cdbi-sweet-t/08pager.t index ea77d81..9650315 100644 --- a/t/cdbi-sweet-t/08pager.t +++ b/t/cdbi-sweet-t/08pager.t @@ -3,10 +3,15 @@ use warnings; use Test::More; -eval "use DBD::SQLite"; -plan skip_all => 'needs DBD::SQLite for testing' if $@; - -plan tests => 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 => 10); +} use lib 't/lib';