diff options
author | Małgorzata Ksionek <meksionek@gmail.com> | 2019-03-13 11:54:06 +0100 |
---|---|---|
committer | Małgorzata Ksionek <meksionek@gmail.com> | 2019-03-13 11:54:06 +0100 |
commit | 03fa783409694e6748b2b0ac06315a8d2dfd2c7e (patch) | |
tree | c71c87333e1a92123ed9f51ba29ccecd51291748 /spec/features | |
parent | e285fb50498912c7fbabf5edfe64a9bedd85fc71 (diff) | |
download | gitlab-ce-03fa783409694e6748b2b0ac06315a8d2dfd2c7e.tar.gz |
Add cr remarksfix-false-positive-specs
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/security/group/private_access_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/features/security/group/private_access_spec.rb b/spec/features/security/group/private_access_spec.rb index 8944124bd72..21be6126884 100644 --- a/spec/features/security/group/private_access_spec.rb +++ b/spec/features/security/group/private_access_spec.rb @@ -96,20 +96,12 @@ 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, - linking_user, - link_group_access: ProjectGroupLink::DEVELOPER - ).execute(group) + create(:project_group_link, project: project, group: 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) } |