test_requires 'Test::Builder' => 0.33;
test_requires 'Test::Warn' => 0.11;
test_requires 'Test::Exception' => 0;
+test_requires 'FindBin' => 0;
install_script 'script/dbicadmin';
use strict;
use warnings;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin/../t/lib";
+use DBICNSTest::Result::A;
-unshift(@INC, './t/lib');
-
-plan tests => 6;
+plan tests => 7;
my $warnings;
eval {
isa_ok($source_b, 'DBIx::Class::ResultSource::Table');
my $rset_b = DBICNSTest->resultset('B');
isa_ok($rset_b, 'DBIx::Class::ResultSet');
+ok(
+ $source_b->source_name
+ eq DBICNSTest::Result::B->result_source_instance->source_name
+);
\ No newline at end of file
package DBICNSTest::Result::B;
-use base qw/DBIx::Class/;
+use base qw/DBICNSTest::Result::A/;
__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('b');
__PACKAGE__->add_columns('b');