Massive cleanup of DateTime test dependencies, other interim
[dbsrgits/DBIx-Class.git] / t / 40resultsetmanager.t
1 use strict;
2 use warnings;
3 use Test::More;
4
5 use lib qw(t/lib);
6
7 BEGIN {
8   local $SIG{__WARN__} = sub {};
9   require DBIx::Class::ResultSetManager;
10 }
11
12 use DBICTest::ResultSetManager;
13
14 my $schema = DBICTest::ResultSetManager->compose_namespace('DB');
15 my $rs = $schema->resultset('Foo');
16
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' );
21
22 done_testing;