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
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2019-06-27 11:52:56 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2019-06-27 11:52:56 +0300
commitab0c3e086f5c0fc3eeb1335bbe4c8de02676dc16 (patch)
treebe7b610cc2f3007376e18d5dfc6745418e2b7e3a /spec
parent80735a2d4b3615e5bd94ea6032b304b58dd2c357 (diff)
parentee791d3f40913fa57d878aecb9bf8c86ea27e3b4 (diff)
Merge branch 'sh-add-gitaly-ref-caching-search-controller' into 'master'
Enable Gitaly ref caching for SearchController See merge request gitlab-org/gitlab-ce!30105
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/search_controller_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/search_controller_spec.rb b/spec/controllers/search_controller_spec.rb
index 4634d1d4bb3..fd36ff812ff 100644
--- a/spec/controllers/search_controller_spec.rb
+++ b/spec/controllers/search_controller_spec.rb
@@ -17,6 +17,10 @@ describe SearchController do
set(:project) { create(:project, :public, :repository, :wiki_repo) }
+ before do
+ expect(::Gitlab::GitalyClient).to receive(:allow_ref_name_caching).and_call_original
+ end
+
subject { get(:show, params: { project_id: project.id, scope: scope, search: 'merge' }) }
where(:partial, :scope) do