From e0fffef75c8784567669dc554b31916c2769427b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 20 Apr 2010 20:33:16 -0700 Subject: [PATCH] Search results are not in any given order. Update the StoryArchive test. --- t/Asset/Wobject/StoryArchive.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/t/Asset/Wobject/StoryArchive.t b/t/Asset/Wobject/StoryArchive.t index c51e8a226..272b8a564 100644 --- a/t/Asset/Wobject/StoryArchive.t +++ b/t/Asset/Wobject/StoryArchive.t @@ -419,12 +419,15 @@ $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}, [ { epochDate => ignore(), - story_loop => [ + story_loop => bag( { creationDate => ignore(), url => ignore(), @@ -439,7 +442,7 @@ cmp_bag( editIcon => ignore(), deleteIcon => ignore(), }, - ], + ), }, { epochDate => $wgBdayMorn,