From: Peter Rabbitson Date: Fri, 20 Feb 2009 09:31:07 +0000 (+0000) Subject: Sanify test X-Git-Tag: v0.08240~83 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3a8d32fa8cf04b32b4c6fd2524b255b50eccda9f;p=dbsrgits%2FDBIx-Class.git Sanify test --- diff --git a/t/104view.t b/t/104view.t index 0539d48..3efdcf1 100644 --- a/t/104view.t +++ b/t/104view.t @@ -11,17 +11,17 @@ my $schema = DBICTest->init_schema(); plan tests => 2; ## Real view -my $cds_rs = $schema->resultset('CD')->search( { year => 2000 }); +my $cds_rs_2000 = $schema->resultset('CD')->search( { year => 2000 }); my $year2kcds_rs = $schema->resultset('Year2000CDs'); -is($cds_rs->count, $year2kcds_rs->count, 'View Year2000CDs sees all CDs in year 2000'); +is($cds_rs_2000->count, $year2kcds_rs->count, 'View Year2000CDs sees all CDs in year 2000'); ## Virtual view -my $cds_rs = $schema->resultset('CD')->search( { year => 1999 }); +my $cds_rs_1999 = $schema->resultset('CD')->search( { year => 1999 }); my $year1999cds_rs = $schema->resultset('Year1999CDs'); -is($cds_rs->count, $year1999cds_rs->count, 'View Year1999CDs sees all CDs in year 1999'); +is($cds_rs_1999->count, $year1999cds_rs->count, 'View Year1999CDs sees all CDs in year 1999');