From: Peter Rabbitson Date: Fri, 19 Jun 2009 14:33:49 +0000 (+0000) Subject: no need to slice as use_prefetch already has a limit X-Git-Tag: v0.08108~76^2~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=09707a3100d5eb4b7fefab3ef9f786aada28944f;p=dbsrgits%2FDBIx-Class.git no need to slice as use_prefetch already has a limit --- diff --git a/t/prefetch/with_limit.t b/t/prefetch/with_limit.t index d1f9d19..a1c196f 100644 --- a/t/prefetch/with_limit.t +++ b/t/prefetch/with_limit.t @@ -8,7 +8,7 @@ use Test::Exception; use lib qw(t/lib); use DBICTest; -plan tests => 7; +plan tests => 8; my $schema = DBICTest->init_schema(); @@ -84,7 +84,7 @@ throws_ok ( 'single() with multiprefetch is illegal', ); -my $artist = $use_prefetch->search({'cds.title' => $artist_many_cds->cds->first->title })->slice->next; +my $artist = $use_prefetch->search({'cds.title' => $artist_many_cds->cds->first->title })->next; is($artist->cds->count, 1, "count on search limiting prefetched has_many");