From: Devin Austin Date: Fri, 21 Jan 2011 01:38:30 +0000 (-0700) Subject: tests pass, but need to fuck with load_namespaces now X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=82828122a412de433618e32ae90a31fcb1029744;p=dbsrgits%2FDBIx-Class.git tests pass, but need to fuck with load_namespaces now --- diff --git a/t/39load_namespaces_5.t b/t/39load_namespaces_5.t index 348c0bf..a69fcd7 100644 --- a/t/39load_namespaces_5.t +++ b/t/39load_namespaces_5.t @@ -15,4 +15,9 @@ eval { my $source_mro_order = DBICNSTest->source('MROOrder'); isa_ok($source_mro_order , 'DBIx::Class::ResultSource::Table'); +my $schema = DBICNSTest->connect("dbi:SQLite::memory:", "", ""); +$schema->deploy; +use Data::Dumper; + +warn "linear: " . Dumper mro::get_linear_isa(ref $schema->resultset('MROOrder')); done_testing(); diff --git a/t/lib/DBICNSTest/Result/MROOrder.pm b/t/lib/DBICNSTest/Result/MROOrder.pm index 799cc4e..5ac1596 100644 --- a/t/lib/DBICNSTest/Result/MROOrder.pm +++ b/t/lib/DBICNSTest/Result/MROOrder.pm @@ -1,8 +1,9 @@ package DBICNSTest::Result::MROOrder; use base qw/DBIx::Class::Core/; use DBICNSTest::ResultSet::MROOrder; +__PACKAGE__->load_components(qw/ InflateColumn::FS /); __PACKAGE__->table('mroorder'); __PACKAGE__->add_columns('mroorder'); __PACKAGE__->resultset_class ('DBICNSTest::ResultSet::MROOrder'); -__PACKAGE__->result_source_instance->inject_resultset_components(['+A::Useless', '+A::MoarUseless']); + 1;