Commit | Line | Data |
e60dc79f |
1 | use strict; |
2 | use Test::More; |
3 | |
d9bd5195 |
4 | use lib 't/cdbi/testlib'; |
5 | use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs |
e60dc79f |
6 | |
7 | package Foo; |
8 | |
c0b5f828 |
9 | use base qw(DBIx::Class::CDBICompat); |
e60dc79f |
10 | |
11 | eval { |
12 | Foo->table("foo"); |
13 | Foo->columns(Essential => qw(foo bar)); |
c0b5f828 |
14 | #Foo->has_a( bar => "This::Does::Not::Exist::Yet" ); |
e60dc79f |
15 | }; |
c0b5f828 |
16 | #::is $@, ''; |
e60dc79f |
17 | ::is(Foo->table, "foo"); |
18 | ::is_deeply [sort map lc, Foo->columns], [sort map lc, qw(foo bar)]; |
d9bd5195 |
19 | |
20 | ::done_testing; |