10 eval { require Class::Inspector; require Module::Find };
11 if ($@ =~ m{Can.t locate Class/Inspector.pm}) {
12 plan skip_all => "ResultSetManager requires Class::Inspector and Module::Find";
18 use DBICTest::Extra; # uses Class::Inspector
20 my $schema = DBICTest::Extra->compose_connection('DB', 'foo');
21 my $rs = $schema->resultset('Foo');
23 ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' );
24 ok( $rs->can('bar'), 'Foo resultset class has bar method' );
25 isa_ok( $rs, 'DBICTest::Extra::Foo::_resultset', 'Foo resultset class is correct' );
26 is( $rs->bar, 'good', 'bar method works' );