6 #----------------------------------------------------------------------
7 # Test database failures
8 #----------------------------------------------------------------------
11 eval "use DBIx::Class::CDBICompat;";
13 plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
16 eval "use DBD::SQLite";
17 plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 2);
25 numexplodingsheep => 10,
29 title => "Evil Alien Conquerers",
30 numexplodingsheep => 2,
33 is( Film->maximum_value_of("numexplodingsheep"), 10 );
34 is( Film->minimum_value_of("numexplodingsheep"), 2 );