Commit 9c5638fb authored by Phil Hughes's avatar Phil Hughes

Use admin user in tests

parent cd9a2ba1
require 'spec_helper' require 'spec_helper'
describe 'GFM autocomplete loading', feature: true, js: true do describe 'GFM autocomplete loading', feature: true, js: true do
let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
before do before do
project.team << [user, :master] login_as :admin
login_as user
visit namespace_project_path(project.namespace, project) visit namespace_project_path(project.namespace, project)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment