dashboard test fix
This commit is contained in:
parent
de83c91c2f
commit
5b0d6ac873
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue