From: Dmitriy Zaporozhets Date: Wed, 28 Dec 2011 07:07:40 +0000 (+0200) Subject: dashboard test fix X-Git-Tag: v2.1.0~79 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5b0d6ac873c42b45f6a4bf94384764dc1ff808d5;p=wvm%2Fgitlab.git dashboard test fix --- diff --git a/spec/requests/dashboard_spec.rb b/spec/requests/dashboard_spec.rb index d967e8863..cffb65c4e 100644 --- a/spec/requests/dashboard_spec.rb +++ b/spec/requests/dashboard_spec.rb @@ -3,12 +3,16 @@ require 'spec_helper' describe "Dashboard" do before do @project = Factory :project - login_as :user + @user = User.create(:email => "test917@mail.com", + :name => "John Smith", + :password => "123456", + :password_confirmation => "123456") + @project.add_access(@user, :read, :write) + login_with(@user) end describe "GET /dashboard" do before do - @project.add_access(@user, :read, :write) visit dashboard_path end