diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-12-28 09:07:40 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-12-28 09:07:40 +0200 |
commit | 5b0d6ac873c42b45f6a4bf94384764dc1ff808d5 (patch) | |
tree | 92d32e03ccb274f7e880098e9791be68bc55405d /spec | |
parent | de83c91c2fd8b8f5c7230e2515d6e206331fd37f (diff) | |
download | gitlab-ce-5b0d6ac873c42b45f6a4bf94384764dc1ff808d5.tar.gz |
dashboard test fix
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/dashboard_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/requests/dashboard_spec.rb b/spec/requests/dashboard_spec.rb index d967e886302..cffb65c4ebe 100644 --- a/spec/requests/dashboard_spec.rb +++ b/spec/requests/dashboard_spec.rb @@ -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 |