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(
$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});