Make the view test more robust. It has been failing randomly.

This commit is contained in:
Colin Kuskie 2010-07-04 09:40:19 -07:00
parent 61008c8bb8
commit bf7c7aad55

View file

@ -139,14 +139,17 @@ $board->view;
cmp_bag( cmp_bag(
$templateVars->{rows_loop}, $templateVars->{rows_loop},
[ [
{ superhashof({
deptHasChanged => ignore(), deptHasChanged => ignore(),
status => 'In', status => 'In',
dateStamp => ignore(), dateStamp => ignore(),
message => 'work time', message => 'work time',
username => 'red', 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' 'view: returns one entry for each user, entry is correct for user with status'
) or diag(Dumper $templateVars->{rows_loop}); ) or diag(Dumper $templateVars->{rows_loop});