X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F39load_namespaces_4.t;h=b674f30b2ef07d34c16154e41046fd8867b67a81;hb=d4d46d1913b15af0536c4135a652ebcec967fde0;hp=eccc78b87913ccd4b97569843ee1c296ff876406;hpb=3995895f9e96892ed0f359050b437ccd083724ad;p=dbsrgits%2FDBIx-Class.git diff --git a/t/39load_namespaces_4.t b/t/39load_namespaces_4.t index eccc78b..b674f30 100644 --- a/t/39load_namespaces_4.t +++ b/t/39load_namespaces_4.t @@ -6,7 +6,7 @@ use Test::More; unshift(@INC, './t/lib'); -plan tests => 9; +plan tests => 6; my $warnings; eval { @@ -16,19 +16,14 @@ eval { __PACKAGE__->load_namespaces( default_resultset_class => 'RSBase' ); }; ok(!$@) or diag $@; -like($warnings, qr/load_namespaces found ResultSet class C with no corresponding source-definition class/); -like($warnings, qr/load_namespaces found Result class C with no corresponding source-definition class/); +like($warnings, qr/load_namespaces found ResultSet class C with no corresponding Result class/); my $source_a = DBICNSTest->source('A'); isa_ok($source_a, 'DBIx::Class::ResultSource::Table'); my $rset_a = DBICNSTest->resultset('A'); isa_ok($rset_a, 'DBICNSTest::ResultSet::A'); -my $resclass_a = DBICNSTest->resultset('A')->result_class; -is($resclass_a, 'DBICNSTest::Result::A'); my $source_b = DBICNSTest->source('B'); isa_ok($source_b, 'DBIx::Class::ResultSource::Table'); my $rset_b = DBICNSTest->resultset('B'); isa_ok($rset_b, 'DBICNSTest::RSBase'); -my $resclass_b = DBICNSTest->resultset('B')->result_class; -is($resclass_b, 'DBICNSTest::Source::B');