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