Switch CDBICompat and its tests to OptDeps
[dbsrgits/DBIx-Class.git] / t / cdbi / multi_column_set.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;
97d61088 7use lib 't/cdbi/testlib';
e60dc79f 8
e60dc79f 9{
10 package Thing;
11
97d61088 12 use base 'DBIC::Test::SQLite';
e60dc79f 13
14 Thing->columns(TEMP => qw[foo bar baz]);
15 Thing->columns(All => qw[some real stuff]);
16}
17
18my $thing = Thing->construct({ foo => 23, some => 42, baz => 99 });
19$thing->set( foo => "wibble", some => "woosh" );
20is $thing->foo, "wibble";
21is $thing->some, "woosh";
22is $thing->baz, 99;
23
24$thing->discard_changes;
d9bd5195 25
26done_testing;