X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F39load_namespaces_4.t;h=789ed50971faf2d395020a32c90792ae8b2fdac0;hb=86a432d4cc096062e2374f118ce38aa131799d6a;hp=d58a5b0c6ebe9653a6f047d1326b4f8f121afb51;hpb=46a05fd450f4848c6dc5f1302001571a79f4728e;p=dbsrgits%2FDBIx-Class.git diff --git a/t/39load_namespaces_4.t b/t/39load_namespaces_4.t index d58a5b0..789ed50 100644 --- a/t/39load_namespaces_4.t +++ b/t/39load_namespaces_4.t @@ -1,10 +1,11 @@ -#!/usr/bin/perl +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } use strict; use warnings; use Test::More; -unshift(@INC, './t/lib'); + +use DBICTest; # do not remove even though it is not used plan tests => 6; @@ -12,11 +13,11 @@ my $warnings; eval { local $SIG{__WARN__} = sub { $warnings .= shift }; package DBICNSTest; - use base qw/DBIx::Class::Schema/; + use base qw/DBICTest::BaseSchema/; __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 ResultSet class 'DBICNSTest::ResultSet::C' with no corresponding Result class/); my $source_a = DBICNSTest->source('A'); isa_ok($source_a, 'DBIx::Class::ResultSource::Table');