tests pass, but need to fuck with load_namespaces now
Devin Austin [Fri, 21 Jan 2011 01:38:30 +0000 (18:38 -0700)]
t/39load_namespaces_5.t
t/lib/DBICNSTest/Result/MROOrder.pm

index 348c0bf..a69fcd7 100644 (file)
@@ -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();
index 799cc4e..5ac1596 100644 (file)
@@ -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;