From: Ash Berlin Date: Fri, 19 Jun 2009 14:31:11 +0000 (+0000) Subject: Add extra test for prefetch+has_many X-Git-Tag: v0.08108~76^2~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=01c781fec019cc8af56329e1d88a38fde6d37b1f;p=dbsrgits%2FDBIx-Class.git Add extra test for prefetch+has_many --- diff --git a/t/prefetch/with_limit.t b/t/prefetch/with_limit.t index 6e849f2..d1f9d19 100644 --- a/t/prefetch/with_limit.t +++ b/t/prefetch/with_limit.t @@ -83,3 +83,8 @@ throws_ok ( qr/resultsets prefetching has_many/, 'single() with multiprefetch is illegal', ); + +my $artist = $use_prefetch->search({'cds.title' => $artist_many_cds->cds->first->title })->slice->next; + +is($artist->cds->count, 1, "count on search limiting prefetched has_many"); +