fix dashboard spec
This commit is contained in:
parent
53ce00f74a
commit
fbf412eaa0
1 changed files with 4 additions and 2 deletions
|
@ -1,11 +1,13 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe "Dashboard" do
|
describe "Dashboard" do
|
||||||
before { login_as :user }
|
before do
|
||||||
|
@project = Factory :project
|
||||||
|
login_as :user
|
||||||
|
end
|
||||||
|
|
||||||
describe "GET /dashboard" do
|
describe "GET /dashboard" do
|
||||||
before do
|
before do
|
||||||
@project = Factory :project
|
|
||||||
@project.add_access(@user, :read, :write)
|
@project.add_access(@user, :read, :write)
|
||||||
visit dashboard_path
|
visit dashboard_path
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue