use Test::More;\r
\r
BEGIN {\r
- eval "use DBD::SQLite";\r
- plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6);\r
+ eval "use DBIx::Class::CDBICompat;";\r
+ if ($@) {\r
+ plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');\r
+ next;\r
+ }\r
+ eval "use DBD::SQLite";\r
+ plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6);\r
}\r
\r
use lib 't/testlib';\r