Switch CDBICompat and its tests to OptDeps
[dbsrgits/DBIx-Class-Historic.git] / t / cdbi / multi_column_set.t
1 use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
2
3 use strict;
4 use warnings;
5
6 use Test::More;
7 use lib 't/cdbi/testlib';
8
9 {
10     package Thing;
11
12     use base 'DBIC::Test::SQLite';
13
14     Thing->columns(TEMP => qw[foo bar baz]);
15     Thing->columns(All  => qw[some real stuff]);
16 }
17
18 my $thing = Thing->construct({ foo => 23, some => 42, baz => 99 });
19 $thing->set( foo => "wibble", some => "woosh" );
20 is $thing->foo, "wibble";
21 is $thing->some, "woosh";
22 is $thing->baz, 99;
23
24 $thing->discard_changes;
25
26 done_testing;