X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F39load_namespaces_4.t;h=4c7c818b6bfb3191f2c50656294676044ff059d3;hb=de0ed7f1a05646ecf440d62d1423eaa46f5cd26b;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..4c7c818 100644 --- a/t/39load_namespaces_4.t +++ b/t/39load_namespaces_4.t @@ -4,7 +4,8 @@ use strict; use warnings; use Test::More; -unshift(@INC, './t/lib'); +use lib qw(t/lib); +use DBICTest; # do not remove even though it is not used plan tests => 6; @@ -16,7 +17,7 @@ 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 ResultSet class C with no corresponding Result class/); my $source_a = DBICNSTest->source('A'); isa_ok($source_a, 'DBIx::Class::ResultSource::Table');