Use admin user in tests

This commit is contained in:
Phil Hughes 2016-09-07 09:13:40 +01:00
parent cd9a2ba1aa
commit 9c5638fb5b

View file

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