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