Commit | Line | Data |
---|---|---|
d88ecca6 | 1 | use warnings; |
2 | use strict; | |
e7513319 | 3 | |
d88ecca6 | 4 | use Test::More; |
5 | use Test::Exception; | |
e7513319 | 6 | |
d88ecca6 | 7 | throws_ok ( |
8 | sub { | |
9 | package BuggyTable; | |
10 | use base 'DBIx::Class::Core'; | |
e7513319 | 11 | |
d88ecca6 | 12 | __PACKAGE__->table('buggy_table'); |
6ebac5d6 | 13 | __PACKAGE__->columns( qw/this doesnt work as expected/ ); |
d88ecca6 | 14 | }, |
15 | qr/\bcolumns\(\) is a read-only/, | |
16 | 'columns() error when apparently misused', | |
17 | ); | |
e7513319 | 18 | |
d88ecca6 | 19 | done_testing; |