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