First half of distinct cleanup
[dbsrgits/DBIx-Class-Historic.git] / t / 20setuperrors.t
CommitLineData
d88ecca6 1use warnings;
2use strict;
e7513319 3
d88ecca6 4use Test::More;
5use Test::Exception;
e7513319 6
d88ecca6 7throws_ok (
8 sub {
9 package BuggyTable;
10 use base 'DBIx::Class::Core';
e7513319 11
d88ecca6 12 __PACKAGE__->table('buggy_table');
13 __PACKAGE__->columns qw/this doesnt work as expected/;
14 },
15 qr/\bcolumns\(\) is a read-only/,
16 'columns() error when apparently misused',
17);
e7513319 18
d88ecca6 19done_testing;