Skip error/warn frames within CAG - saner callsite error messages this way
[dbsrgits/DBIx-Class.git] / t / 40resultsetmanager.t
CommitLineData
762a7bb2 1use strict;
2use warnings;
3use Test::More;
e42bbd7f 4use Test::Warn;
762a7bb2 5
6use lib qw(t/lib);
762a7bb2 7
e42bbd7f 8warnings_exist { require DBICTest::ResultSetManager }
9 [
10 qr/\QDBIx::Class::ResultSetManager never left experimental status/,
11 ],
12 'found deprecation warning'
13;
da0d740f 14
11357d09 15my $schema = DBICTest::ResultSetManager->compose_namespace('DB');
762a7bb2 16my $rs = $schema->resultset('Foo');
17
18ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' );
19ok( $rs->can('bar'), 'Foo resultset class has bar method' );
b1fb2c94 20isa_ok( $rs, 'DBICTest::ResultSetManager::Foo::_resultset', 'Foo resultset class is correct' );
cc6504dc 21is( $rs->bar, 'good', 'bar method works' );
68de9438 22
23done_testing;