Commit 5b0d6ac8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

dashboard test fix

parent de83c91c
...@@ -3,12 +3,16 @@ require 'spec_helper' ...@@ -3,12 +3,16 @@ require 'spec_helper'
describe "Dashboard" do describe "Dashboard" do
before do before do
@project = Factory :project @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 end
describe "GET /dashboard" do describe "GET /dashboard" do
before do before do
@project.add_access(@user, :read, :write)
visit dashboard_path visit dashboard_path
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment