From: Matt S Trout Date: Mon, 10 Jul 2006 01:16:47 +0000 (+0000) Subject: some evals so the tests finish X-Git-Tag: v0.07002~75^2~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b377c7e149b1f33212bc8810f42625f064707f23;p=dbsrgits%2FDBIx-Class.git some evals so the tests finish --- diff --git a/t/76joins.t b/t/76joins.t index 1e39dfb..e828d6d 100644 --- a/t/76joins.t +++ b/t/76joins.t @@ -308,14 +308,15 @@ $tree_like = $schema->resultset('TreeLike')->search_related('children', { 'children.id' => 2, 'children_2.id' => 3 }, { prefetch => { children => 'children' } } )->first; -is($tree_like->children->first->children->first->name, 'quux', 'Tree search_related with prefetch ok'); +is(eval { $tree_like->children->first->children->first->name }, 'quux', + 'Tree search_related with prefetch ok'); -$tree_like = $schema->resultset('TreeLike')->search( +$tree_like = eval { $schema->resultset('TreeLike')->search( { 'children.id' => 2, 'children_2.id' => 5 }, { join => [qw/children children/] } )->search_related('children', { 'children_3.id' => 6 }, { prefetch => 'children' } - )->first->children->first; -is($tree_like->name, 'fong', 'Tree with multiple has_many joins ok'); + )->first->children->first; }; +is(eval { $tree_like->name }, 'fong', 'Tree with multiple has_many joins ok'); # test that collapsed joins don't get a _2 appended to the alias