Commit | Line | Data |
e60dc79f |
1 | use strict; |
4a233f30 |
2 | use warnings; |
e60dc79f |
3 | use Test::More; |
97d61088 |
4 | use 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 | |
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; |
d9bd5195 |
22 | |
23 | done_testing; |