12 my $schema = DBICTest::Extra->compose_connection('DB', 'foo');
13 my $rs = $schema->resultset('Foo');
15 ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' );
16 ok( $rs->can('bar'), 'Foo resultset class has bar method' );
17 isa_ok( $rs, 'DBICTest::Extra::Foo::_resultset', 'Foo resultset class is correct' );
18 is( $rs->bar, 'good', 'bar method works' );