Fix complete breakage of ddl_filename on certain paths
[dbsrgits/DBIx-Class.git] / t / cdbi / hasa_without_loading.t
CommitLineData
e60dc79f 1use strict;
2use Test::More;
3
4BEGIN {
5 eval "use DBIx::Class::CDBICompat;";
6 plan $@ ? (skip_all => 'Class::Trigger and DBIx::ContextualFetch required')
c0b5f828 7 : (tests=> 2);
e60dc79f 8}
9
10package Foo;
11
c0b5f828 12use base qw(DBIx::Class::CDBICompat);
e60dc79f 13
14eval {
15 Foo->table("foo");
16 Foo->columns(Essential => qw(foo bar));
c0b5f828 17 #Foo->has_a( bar => "This::Does::Not::Exist::Yet" );
e60dc79f 18};
c0b5f828 19#::is $@, '';
e60dc79f 20::is(Foo->table, "foo");
21::is_deeply [sort map lc, Foo->columns], [sort map lc, qw(foo bar)];