From 0a05907c399e74831e51dda0357ca0fc57e65239 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 16 May 2010 20:56:09 -0700 Subject: [PATCH] This test fails randomly, on the difference between 0 and undef. Update it to use bool(). --- t/Asset/Wobject/StoryArchive.t | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/t/Asset/Wobject/StoryArchive.t b/t/Asset/Wobject/StoryArchive.t index 272b8a564..3abeb0a22 100644 --- a/t/Asset/Wobject/StoryArchive.t +++ b/t/Asset/Wobject/StoryArchive.t @@ -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}, [