This test fails randomly, on the difference between 0 and undef. Update it to use bool().

This commit is contained in:
Colin Kuskie 2010-05-16 20:56:09 -07:00
parent 0e7ce2c0e3
commit 0a05907c39

View file

@ -255,7 +255,7 @@ $session->user({userId => 1});
cmp_deeply(
$templateVars,
{
canPostStories => 0,
canPostStories => bool(0),
mode => 'view',
addStoryUrl => '',
date_loop => [
@ -419,9 +419,6 @@ $archive->update({storiesPerPage => 25});
$templateVars = $archive->viewTemplateVariables('search');
is($templateVars->{mode}, 'search', 'viewTemplateVariables mode == search');
use Data::Dumper;
diag Dumper $templateVars->{date_loop};
cmp_bag(
$templateVars->{date_loop},
[