fix dashboard spec

This commit is contained in:
Dmitriy Zaporozhets 2011-12-25 20:06:18 +02:00
parent 53ce00f74a
commit fbf412eaa0

View file

@ -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