Switch CDBICompat and its tests to OptDeps
[dbsrgits/DBIx-Class.git] / t / cdbi / early_column_heisenbug.t
CommitLineData
83eef562 1use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
2
96eab6f8 3use strict;
4a233f30 4use warnings;
96eab6f8 5
6use Test::More;
7
96eab6f8 8{
9 package Thing;
10 use base qw(DBIx::Class::CDBICompat);
11}
12
13{
14 package Stuff;
15 use base qw(DBIx::Class::CDBICompat);
16}
17
18# There was a bug where looking at a column group before any were
19# set would cause them to be shared across classes.
20is_deeply [Stuff->columns("Essential")], [];
21Thing->columns(Essential => qw(foo bar baz));
22is_deeply [Stuff->columns("Essential")], [];
23
89bddb49 24done_testing;