From 86f245d1474a19376501ba7eb06df1030ea15644 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sun, 3 Jun 2012 23:35:33 +1200 Subject: [PATCH] Fixed apps/index.html.haml_spec - Need to assign pre-calculated counts --- spec/views/apps/index.html.haml_spec.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/spec/views/apps/index.html.haml_spec.rb b/spec/views/apps/index.html.haml_spec.rb index ee79e8c..bd27da4 100644 --- a/spec/views/apps/index.html.haml_spec.rb +++ b/spec/views/apps/index.html.haml_spec.rb @@ -4,6 +4,8 @@ describe "apps/index.html.haml" do before do app = Fabricate(:app, :deploys => [Fabricate(:deploy, :revision => "123456789abcdef")]) assign :apps, [app] + assign :problem_counts, {app.id => 0} + assign :unresolved_counts, {app.id => 0} controller.stub(:current_user) { Fabricate(:user) } end -- libgit2 0.21.2