Commit | Line | Data |
e60dc79f |
1 | #!/usr/bin/perl -w |
2 | |
3 | use strict; |
4 | use Test::More; |
5 | |
6 | BEGIN { |
7 | eval "use DBIx::Class::CDBICompat;"; |
8 | plan $@ ? (skip_all => 'Class::Trigger and DBIx::ContextualFetch required') |
c0b5f828 |
9 | : (tests=> 2); |
e60dc79f |
10 | } |
11 | |
12 | package Foo; |
13 | |
c0b5f828 |
14 | use base qw(DBIx::Class::CDBICompat); |
e60dc79f |
15 | |
16 | eval { |
17 | Foo->table("foo"); |
18 | Foo->columns(Essential => qw(foo bar)); |
c0b5f828 |
19 | #Foo->has_a( bar => "This::Does::Not::Exist::Yet" ); |
e60dc79f |
20 | }; |
c0b5f828 |
21 | #::is $@, ''; |
e60dc79f |
22 | ::is(Foo->table, "foo"); |
23 | ::is_deeply [sort map lc, Foo->columns], [sort map lc, qw(foo bar)]; |