X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F39load_namespaces_2.t;h=1e73c7f6e0011c3821aae3d0a280b8fa92b7206d;hb=92705f7f05161f7dba36d9b09dc6e893af7b2773;hp=6daf05f9e456388e374c71a404b38a106be86c0c;hpb=c87014e8134cf934b0dc4b81186a41ee6cde4037;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/39load_namespaces_2.t b/t/39load_namespaces_2.t index 6daf05f..1e73c7f 100644 --- a/t/39load_namespaces_2.t +++ b/t/39load_namespaces_2.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,14 +13,14 @@ 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( result_namespace => 'Rslt', resultset_namespace => 'RSet', ); }; ok(!$@) or diag $@; -like($warnings, qr/load_namespaces found ResultSet class C with no corresponding Result class/); +like($warnings, qr/load_namespaces found ResultSet class 'DBICNSTest::RSet::C' with no corresponding Result class/); my $source_a = DBICNSTest->source('A'); isa_ok($source_a, 'DBIx::Class::ResultSource::Table');