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