diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-19 13:38:27 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-19 13:38:27 +0000 |
commit | 18d7766e9e65a0966fd91b0959f49c96f8ad5845 (patch) | |
tree | 93bea1b4d4fb571a34ec92198d6844e481eaa7af /spec/models | |
parent | e23e7bc48165be175d7078d5e6fee002057046fd (diff) | |
download | gitlab-ce-18d7766e9e65a0966fd91b0959f49c96f8ad5845.tar.gz |
Add latest changes from gitlab-org/gitlab@15-4-stable-ee
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/issue_spec.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index 17c3cd17364..e7b2212ebff 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -971,16 +971,11 @@ RSpec.describe Issue do context 'with a project' do it 'returns false when feature is disabled' do + project.add_developer(user) project.project_feature.update_attribute(:issues_access_level, ProjectFeature::DISABLED) is_expected.to eq(false) end - - it 'returns false when restricted for members' do - project.project_feature.update_attribute(:issues_access_level, ProjectFeature::PRIVATE) - - is_expected.to eq(false) - end end context 'without a user' do |