X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F08inflate.tl;h=e21a6c6faf961a97e4d72558190bb918adbbca74;hb=b3caf56c71e1bab50211ac1c6606bc1c59f6072b;hp=9072fd5da0bc20ef429e533ea52cc09603b06dc0;hpb=1edaf6fef6739e4d809ae6adfbeaa6b660ca29b3;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/run/08inflate.tl b/t/run/08inflate.tl index 9072fd5..e21a6c6 100644 --- a/t/run/08inflate.tl +++ b/t/run/08inflate.tl @@ -13,7 +13,7 @@ DBICTest::Schema::CD->inflate_column( 'year', Class::C3->reinitialize; # inflation test -my $cd = $schema->class("CD")->find(3); +my $cd = $schema->resultset("CD")->find(3); is( ref($cd->year), 'DateTime', 'year is a DateTime, ok' ); @@ -24,7 +24,7 @@ my $now = DateTime->now; $cd->year( $now ); $cd->update; -($cd) = $schema->class("CD")->search( year => $now->year ); +($cd) = $schema->resultset("CD")->search( year => $now->year ); is( $cd->year->year, $now->year, 'deflate ok' ); }