From: Peter Rabbitson Date: Sat, 20 Jun 2009 10:37:52 +0000 (+0000) Subject: Clarify test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=96faafb4993196c7381f94cf1b5ebbb71070d1d0;p=dbsrgits%2FDBIx-Class-Historic.git Clarify test --- diff --git a/t/prefetch/with_limit.t b/t/prefetch/with_limit.t index 08df104..1dd0829 100644 --- a/t/prefetch/with_limit.t +++ b/t/prefetch/with_limit.t @@ -14,19 +14,18 @@ my $schema = DBICTest->init_schema(); my $no_prefetch = $schema->resultset('Artist')->search( - undef, - { rows => 3 } -); - -my $use_prefetch = $schema->resultset('Artist')->search( [ # search deliberately contrived { 'artwork.cd_id' => undef }, { 'tracks.title' => { '!=' => 'blah-blah-1234568' }} ], + { rows => 3, join => { cds => [qw/artwork tracks/] }, + } +); + +my $use_prefetch = $no_prefetch->search( + {}, { prefetch => 'cds', - join => { cds => [qw/artwork tracks/] }, - rows => 3, order_by => { -desc => 'name' }, } );