Index: /Users/mo/Documents/workspace/DBIx-Class/t/77prefetch.t =================================================================== --- /Users/mo/Documents/workspace/DBIx-Class/t/77prefetch.t (revision 4911) +++ /Users/mo/Documents/workspace/DBIx-Class/t/77prefetch.t (working copy) @@ -16,7 +16,7 @@ eval "use DBD::SQLite"; plan $@ ? ( skip_all => 'needs DBD::SQLite for testing' ) - : ( tests => 58 ); + : ( tests => 56 ); } # figure out if we've got a version of sqlite that is older than 3.2.6, in @@ -423,8 +423,3 @@ is_deeply ([$pr_tags_rs->all], [$tags_rs->all], 'same structure returned with and without prefetch over several same level has_many\'s (M -> 1 -> M + M)'); }; }; - -eval { my $track = $schema->resultset('CD')->search ({ 'me.title' => 'Forkful of bees' }, { prefetch => [qw/tracks tags/] })->first->tracks->first }; -ok ($@, 'exception on attempt to prefetch several same level has_many\'s (1 -> M + M)'); -eval { my $tag = $schema->resultset('LinerNotes')->search ({ notes => 'Buy Whiskey!' }, { prefetch => { cd => [qw/tags tracks/] } })->first->cd->tags->first }; -ok ($@, 'exception on attempt to prefetch several same level has_many\'s (M -> 1 -> M + M)');