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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue