summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/issues_controller_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-14 09:11:32 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-14 09:11:32 +0000
commit7b69070a7468c4a9b6fe0ed7fbf1b3f2b58434e0 (patch)
tree58e4ce0c7dbbe3442a707e53701ede51139f1c24 /spec/controllers/projects/issues_controller_spec.rb
parent5628b1ec1507638b47fda279b2a70b526a36613f (diff)
downloadgitlab-ce-7b69070a7468c4a9b6fe0ed7fbf1b3f2b58434e0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers/projects/issues_controller_spec.rb')
-rw-r--r--spec/controllers/projects/issues_controller_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/controllers/projects/issues_controller_spec.rb b/spec/controllers/projects/issues_controller_spec.rb
index b3b9941062d..980264bef5c 100644
--- a/spec/controllers/projects/issues_controller_spec.rb
+++ b/spec/controllers/projects/issues_controller_spec.rb
@@ -109,6 +109,14 @@ RSpec.describe Projects::IssuesController do
end
end
+ it_behaves_like 'issuable list with anonymous search disabled' do
+ let(:params) { { namespace_id: project.namespace, project_id: project } }
+
+ before do
+ project.update!(visibility_level: Gitlab::VisibilityLevel::PUBLIC)
+ end
+ end
+
it_behaves_like 'paginated collection' do
let!(:issue_list) { create_list(:issue, 2, project: project) }
let(:collection) { project.issues }