Merge branch 'master' into topic/constructor_rewrite
[dbsrgits/DBIx-Class.git] / t / cdbi / multi_column_set.t
CommitLineData
e60dc79f 1use strict;
2use Test::More;
97d61088 3use lib 't/cdbi/testlib';
e60dc79f 4
e60dc79f 5{
6 package Thing;
7
97d61088 8 use base 'DBIC::Test::SQLite';
e60dc79f 9
10 Thing->columns(TEMP => qw[foo bar baz]);
11 Thing->columns(All => qw[some real stuff]);
12}
13
14my $thing = Thing->construct({ foo => 23, some => 42, baz => 99 });
15$thing->set( foo => "wibble", some => "woosh" );
16is $thing->foo, "wibble";
17is $thing->some, "woosh";
18is $thing->baz, 99;
19
20$thing->discard_changes;
d9bd5195 21
22done_testing;