Switch CDBICompat and its tests to OptDeps
[dbsrgits/DBIx-Class-Historic.git] / t / cdbi / max_min_value_of.t
CommitLineData
83eef562 1use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
2
e60dc79f 3use strict;
4a233f30 4use warnings;
83eef562 5
e60dc79f 6use Test::More;
7
8#----------------------------------------------------------------------
9# Test database failures
10#----------------------------------------------------------------------
11
50891152 12use lib 't/cdbi/testlib';
e60dc79f 13use Film;
14
15Film->create({
16 title => "Bad Taste",
17 numexplodingsheep => 10,
18});
19
20Film->create({
21 title => "Evil Alien Conquerers",
22 numexplodingsheep => 2,
23});
24
25is( Film->maximum_value_of("numexplodingsheep"), 10 );
26is( Film->minimum_value_of("numexplodingsheep"), 2 );
d9bd5195 27
28done_testing;