Commit 5b0d6ac873c42b45f6a4bf94384764dc1ff808d5

Authored by Dmitriy Zaporozhets
1 parent de83c91c

dashboard test fix

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
spec/requests/dashboard_spec.rb
... ... @@ -3,12 +3,16 @@ require 'spec_helper'
3 3 describe "Dashboard" do
4 4 before do
5 5 @project = Factory :project
6   - login_as :user
  6 + @user = User.create(:email => "test917@mail.com",
  7 + :name => "John Smith",
  8 + :password => "123456",
  9 + :password_confirmation => "123456")
  10 + @project.add_access(@user, :read, :write)
  11 + login_with(@user)
7 12 end
8 13  
9 14 describe "GET /dashboard" do
10 15 before do
11   - @project.add_access(@user, :read, :write)
12 16 visit dashboard_path
13 17 end
14 18  
... ...