This test in fact requires DT::F::SQLite
[dbsrgits/DBIx-Class-Historic.git] / t / 40resultsetmanager.t
CommitLineData
762a7bb2 1use strict;
2use warnings;
3use Test::More;
4
5use lib qw(t/lib);
762a7bb2 6
cc6504dc 7BEGIN {
748ab0dc 8 local $SIG{__WARN__} = sub {};
9 require DBIx::Class::ResultSetManager;
10}
11
68de9438 12use DBICTest::ResultSetManager;
da0d740f 13
11357d09 14my $schema = DBICTest::ResultSetManager->compose_namespace('DB');
762a7bb2 15my $rs = $schema->resultset('Foo');
16
17ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' );
18ok( $rs->can('bar'), 'Foo resultset class has bar method' );
b1fb2c94 19isa_ok( $rs, 'DBICTest::ResultSetManager::Foo::_resultset', 'Foo resultset class is correct' );
cc6504dc 20is( $rs->bar, 'good', 'bar method works' );
68de9438 21
22done_testing;