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