sub run_tests {
+my $schema = shift;
eval { require DateTime };
plan skip_all => "Need DateTime for inflation tests" if $@;
Class::C3->reinitialize;
# inflation test
-my $cd = DBICTest::CD->find(3);
+my $cd = $schema->resultset("CD")->find(3);
is( ref($cd->year), 'DateTime', 'year is a DateTime, ok' );
$cd->year( $now );
$cd->update;
-($cd) = DBICTest::CD->search( year => $now->year );
+($cd) = $schema->resultset("CD")->search( year => $now->year );
is( $cd->year->year, $now->year, 'deflate ok' );
}