1 use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
7 use lib 't/cdbi/testlib';
12 use base 'DBIC::Test::SQLite';
14 Thing->columns(TEMP => qw[foo bar]);
15 Thing->columns(All => qw[thing_id yarrow flower]);
20 is_deeply( [sort Thing->columns("TEMP")],
24 my $thing = Thing->construct(
25 { thing_id => 23, foo => "this", bar => "that" }
29 is( $thing->yarrow, "hock", 'custom accessor not overwritten by column' );
30 is( $thing->foo, 42, 'custom routine not overwritten by temp column' );
31 is( $thing->bar, "that", 'temp column accessor generated' );