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

Use admin user in tests

parent cd9a2ba1
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
......
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