Commit 545d7837 authored by Tim Zallmann's avatar Tim Zallmann

Adding more access rights

parent a6fc5917
......@@ -5,7 +5,7 @@ describe 'Promotions', js: true do
let(:user) { create(:user) }
let(:otherdeveloper) { create(:user, name: 'TheOtherDeveloper') }
let(:group) { create(:group) }
let(:project) { create(:project, :repository) }
let(:project) { create(:project, :repository, namespace: group.namespace) }
let(:milestone) { create(:milestone, project: project, start_date: Date.today, due_date: 7.days.from_now) }
let!(:issue) { create(:issue, project: project, author: user) }
let(:otherproject) { create(:project, :repository, namespace: otherdeveloper.namespace) }
......@@ -183,6 +183,7 @@ describe 'Promotions', js: true do
allow(Gitlab).to receive(:com?) { true }
project.team << [user, :master]
otherproject.team << [user, :master]
sign_in(user)
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