Switch the main dev branch back to 'master'
[dbsrgits/DBIx-Class.git] / t / cdbi / hasa_without_loading.t
1 use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
2
3 use strict;
4 use warnings;
5
6 use Test::More;
7
8 use lib 't/cdbi/testlib';
9
10 package Foo;
11
12 use base qw(DBIx::Class::CDBICompat);
13
14 eval {
15     Foo->table("foo");
16     Foo->columns(Essential => qw(foo bar));
17     #Foo->has_a( bar => "This::Does::Not::Exist::Yet" );
18 };
19 #::is $@, '';
20 ::is(Foo->table, "foo");
21 ::is_deeply [sort map lc, Foo->columns], [sort map lc, qw(foo bar)];
22
23 ::done_testing;