Use admin user in tests
This commit is contained in:
parent
cd9a2ba1aa
commit
9c5638fb5b
1 changed files with 1 additions and 3 deletions
|
@ -1,12 +1,10 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe 'GFM autocomplete loading', feature: true, js: true do
|
||||
let(:user) { create(:user) }
|
||||
let(:project) { create(:project) }
|
||||
|
||||
before do
|
||||
project.team << [user, :master]
|
||||
login_as user
|
||||
login_as :admin
|
||||
|
||||
visit namespace_project_path(project.namespace, project)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue