X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcount%2Fcount_rs.t;h=af2eeb38a32c72f51bfb50ddeaee599790a2c437;hb=wip%2Fcount-no-soft-limit;hp=174f6307f690186b25498c1de8e8bc0fb38d61e2;hpb=7db287353abcf82c4fe856d4636384084ed5c13f;p=dbsrgits%2FDBIx-Class.git diff --git a/t/count/count_rs.t b/t/count/count_rs.t index 174f630..af2eeb3 100644 --- a/t/count/count_rs.t +++ b/t/count/count_rs.t @@ -31,7 +31,7 @@ my $schema = DBICTest->init_schema(); is ($rs->all, 2, 'Correct number of objects'); $schema->is_executed_sql_bind( sub { - is ($rs->count, 2, 'Correct count via count()'); + is ($rs->count({}, { software_limit => 1 }), 2, 'Correct count via count()'); }, [[ 'SELECT COUNT( * ) FROM cd me @@ -78,7 +78,7 @@ my $schema = DBICTest->init_schema(); is ($rs->all, 1, 'Correct number of objects'); $schema->is_executed_sql_bind( sub { - is ($rs->count, 1, 'Correct count via count()'); + is ($rs->count({}, { software_limit => 1 }), 1, 'Correct count via count()'); }, [ [ 'SELECT COUNT( * ) FROM (