11 eval "use Class::Inspector";
13 ? ( skip_all => 'needs Class:Inspector for testing' )
17 my $schema = DBICTest::Extra->compose_connection('DB', 'foo');
18 my $rs = $schema->resultset('Foo');
20 ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' );
21 ok( $rs->can('bar'), 'Foo resultset class has bar method' );
22 isa_ok( $rs, 'DBICTest::Extra::Foo::_resultset', 'Foo resultset class is correct' );
23 is( $rs->bar, 'good', 'bar method works' );