Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-11 06:09:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-11 06:09:00 +0300
commit574ed32358d8e502793bf133099d1b6e3b8e3d76 (patch)
treefc7e88674da5abf366b3619f5954cacbb1157eef /spec/models
parent67d19cc004e5956ca51a85050fceedaa55750526 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/issue_spec.rb7
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