diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /spec/requests/search_controller_spec.rb | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'spec/requests/search_controller_spec.rb')
-rw-r--r-- | spec/requests/search_controller_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/requests/search_controller_spec.rb b/spec/requests/search_controller_spec.rb index f2d4e288ddc..365b20ad4aa 100644 --- a/spec/requests/search_controller_spec.rb +++ b/spec/requests/search_controller_spec.rb @@ -39,7 +39,8 @@ RSpec.describe SearchController, type: :request, feature_category: :global_searc context 'for issues scope' do let(:object) { :issue } - let(:creation_args) { { project: project, title: 'foo' } } + let(:labels) { create_list(:label, 3, project: project) } + let(:creation_args) { { project: project, title: 'foo', labels: labels } } let(:params) { { search: 'foo', scope: 'issues' } } # some N+1 queries still exist # each issue runs an extra query for group namespaces @@ -50,8 +51,9 @@ RSpec.describe SearchController, type: :request, feature_category: :global_searc context 'for merge_requests scope' do let(:creation_traits) { [:unique_branches] } + let(:labels) { create_list(:label, 3, project: project) } let(:object) { :merge_request } - let(:creation_args) { { source_project: project, title: 'bar' } } + let(:creation_args) { { source_project: project, title: 'bar', labels: labels } } let(:params) { { search: 'bar', scope: 'merge_requests' } } # some N+1 queries still exist # each merge request runs an extra query for project routes |