Commit | Line | Data |
c0329273 |
1 | BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } |
83eef562 |
2 | use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat'; |
3 | |
e60dc79f |
4 | use strict; |
4a233f30 |
5 | use warnings; |
83eef562 |
6 | |
e60dc79f |
7 | use Test::More; |
97d61088 |
8 | use lib 't/cdbi/testlib'; |
e60dc79f |
9 | |
e60dc79f |
10 | { |
11 | package Thing; |
12 | |
97d61088 |
13 | use base 'DBIC::Test::SQLite'; |
e60dc79f |
14 | |
15 | Thing->columns(TEMP => qw[foo bar baz]); |
16 | Thing->columns(All => qw[some real stuff]); |
17 | } |
18 | |
19 | my $thing = Thing->construct({ foo => 23, some => 42, baz => 99 }); |
20 | $thing->set( foo => "wibble", some => "woosh" ); |
21 | is $thing->foo, "wibble"; |
22 | is $thing->some, "woosh"; |
23 | is $thing->baz, 99; |
24 | |
25 | $thing->discard_changes; |
d9bd5195 |
26 | |
27 | done_testing; |