Commit | Line | Data |
c0329273 |
1 | BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } |
83eef562 |
2 | use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat'; |
3 | |
e60dc79f |
4 | use strict; |
4a233f30 |
5 | use warnings; |
83eef562 |
6 | |
e60dc79f |
7 | use Test::More; |
8 | |
9 | #---------------------------------------------------------------------- |
10 | # Test database failures |
11 | #---------------------------------------------------------------------- |
12 | |
50891152 |
13 | use lib 't/cdbi/testlib'; |
e60dc79f |
14 | use Film; |
15 | |
16 | Film->create({ |
17 | title => "Bad Taste", |
18 | numexplodingsheep => 10, |
19 | }); |
20 | |
21 | Film->create({ |
22 | title => "Evil Alien Conquerers", |
23 | numexplodingsheep => 2, |
24 | }); |
25 | |
26 | is( Film->maximum_value_of("numexplodingsheep"), 10 ); |
27 | is( Film->minimum_value_of("numexplodingsheep"), 2 ); |
d9bd5195 |
28 | |
29 | done_testing; |