diff options
author | Małgorzata Ksionek <meksionek@gmail.com> | 2019-03-12 12:33:45 +0100 |
---|---|---|
committer | Małgorzata Ksionek <meksionek@gmail.com> | 2019-03-12 12:33:45 +0100 |
commit | e285fb50498912c7fbabf5edfe64a9bedd85fc71 (patch) | |
tree | 41c9c6f322c8dad2f4094d1b767aa13951c6d610 /spec/features/security/group | |
parent | e4b2c3b08b0aced417e072e60d5b299144c40474 (diff) | |
download | gitlab-ce-e285fb50498912c7fbabf5edfe64a9bedd85fc71.tar.gz |
Fix false positive specs
Diffstat (limited to 'spec/features/security/group')
-rw-r--r-- | spec/features/security/group/private_access_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/features/security/group/private_access_spec.rb b/spec/features/security/group/private_access_spec.rb index 3238e07fe15..8944124bd72 100644 --- a/spec/features/security/group/private_access_spec.rb +++ b/spec/features/security/group/private_access_spec.rb @@ -96,16 +96,20 @@ describe 'Private Group access' do describe 'GET /groups/:path for shared projects' do let(:project) { create(:project, :public) } + let(:linking_user) { create(:user) } before do + group.add_guest(linking_user) + Projects::GroupLinks::CreateService.new( project, - create(:user), + linking_user, link_group_access: ProjectGroupLink::DEVELOPER ).execute(group) end subject { group_path(group) } + it { expect(group.shared_projects).not_to be_empty } it { is_expected.to be_allowed_for(:admin) } it { is_expected.to be_allowed_for(:owner).of(group) } it { is_expected.to be_allowed_for(:maintainer).of(group) } |