8 local $SIG{__WARN__} = sub {};
9 require DBIx::Class::ResultSetManager;
12 use DBICTest::ResultSetManager;
14 my $schema = DBICTest::ResultSetManager->compose_namespace('DB');
15 my $rs = $schema->resultset('Foo');
17 ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' );
18 ok( $rs->can('bar'), 'Foo resultset class has bar method' );
19 isa_ok( $rs, 'DBICTest::ResultSetManager::Foo::_resultset', 'Foo resultset class is correct' );
20 is( $rs->bar, 'good', 'bar method works' );