Introduce GOVERNANCE document and empty RESOLUTIONS file.
[dbsrgits/DBIx-Class.git] / t / cdbi / hasa_without_loading.t
CommitLineData
c0329273 1BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
83eef562 2use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
3
e60dc79f 4use strict;
4a233f30 5use warnings;
83eef562 6
e60dc79f 7use Test::More;
8
d9bd5195 9use lib 't/cdbi/testlib';
e60dc79f 10
11package Foo;
12
c0b5f828 13use base qw(DBIx::Class::CDBICompat);
e60dc79f 14
15eval {
16 Foo->table("foo");
17 Foo->columns(Essential => qw(foo bar));
c0b5f828 18 #Foo->has_a( bar => "This::Does::Not::Exist::Yet" );
e60dc79f 19};
c0b5f828 20#::is $@, '';
e60dc79f 21::is(Foo->table, "foo");
22::is_deeply [sort map lc, Foo->columns], [sort map lc, qw(foo bar)];
d9bd5195 23
24::done_testing;