1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
use strict;
use Test::More;
BEGIN {
eval "use DBIx::Class::CDBICompat;";
plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@" if $@;
}
{
package Thing;
use base qw(DBIx::Class::CDBICompat);
}
{
package Stuff;
use base qw(DBIx::Class::CDBICompat);
}
# There was a bug where looking at a column group before any were
# set would cause them to be shared across classes.
is_deeply [Stuff->columns("Essential")], [];
Thing->columns(Essential => qw(foo bar baz));
is_deeply [Stuff->columns("Essential")], [];
done_testing;
|