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