From: Peter Rabbitson Date: Fri, 12 Nov 2010 15:22:01 +0000 (+0100) Subject: Stop spurious warnings in cdbi test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ede573ac79427d9905685866142e19074478994c;p=dbsrgits%2FDBIx-Class-Historic.git Stop spurious warnings in cdbi test --- diff --git a/t/cdbi/68-inflate_has_a.t b/t/cdbi/68-inflate_has_a.t index 7842f0a..fbb4233 100644 --- a/t/cdbi/68-inflate_has_a.t +++ b/t/cdbi/68-inflate_has_a.t @@ -35,7 +35,7 @@ my $now = DateTime->now; $cd->year( $now ); $cd->update; -($cd) = $schema->resultset("CD")->search( year => $now->year ); +($cd) = $schema->resultset("CD")->search({ year => $now->year }); is( $cd->year->year, $now->year, 'deflate ok' ); # re-test using alternate deflate syntax @@ -56,6 +56,6 @@ $now = DateTime->now; $cd->year( $now ); $cd->update; -($cd) = $schema->resultset("CD")->search( year => $now->year ); +($cd) = $schema->resultset("CD")->search({ year => $now->year }); is( $cd->year->year, $now->year, 'deflate ok' );