From bf7c7aad55f14134733afd0959a25c2bf85b7936 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 4 Jul 2010 09:40:19 -0700 Subject: [PATCH] Make the view test more robust. It has been failing randomly. --- t/Asset/Wobject/InOutBoard.t | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/t/Asset/Wobject/InOutBoard.t b/t/Asset/Wobject/InOutBoard.t index 966f2b130..0178e7fda 100644 --- a/t/Asset/Wobject/InOutBoard.t +++ b/t/Asset/Wobject/InOutBoard.t @@ -139,14 +139,17 @@ $board->view; cmp_bag( $templateVars->{rows_loop}, [ - { + superhashof({ deptHasChanged => ignore(), status => 'In', dateStamp => ignore(), message => 'work time', username => 'red', - }, - ignore(), ignore(), ignore(), ignore(), + }), + superhashof({ username => 'Admin' }), + superhashof({ username => 'boggs' }), + superhashof({ username => 'andy' }), + superhashof({ username => 'hadley' }), ], 'view: returns one entry for each user, entry is correct for user with status' ) or diag(Dumper $templateVars->{rows_loop});