diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/models/project_group_link_spec.rb | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/models/project_group_link_spec.rb')
-rw-r--r-- | spec/models/project_group_link_spec.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/models/project_group_link_spec.rb b/spec/models/project_group_link_spec.rb index 9c51180b55b..8ef29e8a876 100644 --- a/spec/models/project_group_link_spec.rb +++ b/spec/models/project_group_link_spec.rb @@ -49,22 +49,6 @@ describe ProjectGroupLink do end end - describe "destroying a record", :delete do - it "refreshes group users' authorized projects" do - project = create(:project, :private) - group = create(:group) - reporter = create(:user) - group_users = group.users - - group.add_reporter(reporter) - project.project_group_links.create(group: group) - group_users.each { |user| expect(user.authorized_projects).to include(project) } - - project.project_group_links.destroy_all # rubocop: disable DestroyAll - group_users.each { |user| expect(user.authorized_projects).not_to include(project) } - end - end - describe 'search by group name' do let_it_be(:project_group_link) { create(:project_group_link) } let_it_be(:group) { project_group_link.group } |