9 warnings_exist { require DBICTest::ResultSetManager }
11 qr/\QDBIx::Class::ResultSetManager never left experimental status/,
13 'found deprecation warning'
16 my $schema = DBICTest::ResultSetManager->compose_namespace('DB');
17 my $rs = $schema->resultset('Foo');
19 ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' );
20 ok( $rs->can('bar'), 'Foo resultset class has bar method' );
21 isa_ok( $rs, 'DBICTest::ResultSetManager::Foo::_resultset', 'Foo resultset class is correct' );
22 is( $rs->bar, 'good', 'bar method works' );