blob: 1c429202abad6d1421ab3b6e4c2973636846750c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require 'spec_helper'
feature 'Projects > Members > Group member cannot leave group project', feature: true do
let(:user) { create(:user) }
let(:group) { create(:group) }
let(:project) { create(:project, namespace: group) }
background do
group.add_developer(user)
gitlab_sign_in(user)
visit project_path(project)
end
scenario 'user does not see a "Leave project" link' do
expect(page).not_to have_content 'Leave project'
end
end
|