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