dashboard test fix

This commit is contained in:
Dmitriy Zaporozhets 2011-12-28 09:07:40 +02:00
parent de83c91c2f
commit 5b0d6ac873

View file

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