From fbf412eaa0ee68812cdbab9e96f194e03fedd334 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Date: Sun, 25 Dec 2011 20:06:18 +0200 Subject: [PATCH] fix dashboard spec --- spec/requests/dashboard_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/requests/dashboard_spec.rb b/spec/requests/dashboard_spec.rb index 331aeeb99c..d967e88630 100644 --- a/spec/requests/dashboard_spec.rb +++ b/spec/requests/dashboard_spec.rb @@ -1,11 +1,13 @@ require 'spec_helper' describe "Dashboard" do - before { login_as :user } + before do + @project = Factory :project + login_as :user + end describe "GET /dashboard" do before do - @project = Factory :project @project.add_access(@user, :read, :write) visit dashboard_path end -- 2.30.9