1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2 use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
8 use lib 't/cdbi/testlib';
13 use base 'DBIC::Test::SQLite';
15 Thing->columns(TEMP => qw[foo bar]);
16 Thing->columns(All => qw[thing_id yarrow flower]);
21 is_deeply( [sort Thing->columns("TEMP")],
25 my $thing = Thing->construct(
26 { thing_id => 23, foo => "this", bar => "that" }
30 is( $thing->yarrow, "hock", 'custom accessor not overwritten by column' );
31 is( $thing->foo, 42, 'custom routine not overwritten by temp column' );
32 is( $thing->bar, "that", 'temp column accessor generated' );