Reorganize CDBICompat tests - centralize prereq checks in one place
[dbsrgits/DBIx-Class.git] / t / cdbi / hasa_without_loading.t
CommitLineData
e60dc79f 1use strict;
2use Test::More;
3
d9bd5195 4use lib 't/cdbi/testlib';
5use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs
e60dc79f 6
7package Foo;
8
c0b5f828 9use base qw(DBIx::Class::CDBICompat);
e60dc79f 10
11eval {
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;