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