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>2020-03-25 21:08:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-25 21:08:10 +0300
commit5d75b2b9a9d11c20667895e6aa68ea4e76658c5d (patch)
tree2aa529b0a153c805f5f4ecb357321a4e4f4c59cb /spec/support/praefect.rb
parent6f2065c468b05658125b746169c56764a8ccddb1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/praefect.rb')
-rw-r--r--spec/support/praefect.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/support/praefect.rb b/spec/support/praefect.rb
new file mode 100644
index 00000000000..3218275c2aa
--- /dev/null
+++ b/spec/support/praefect.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+require_relative 'helpers/test_env'
+
+RSpec.configure do |config|
+ config.before(:each, :praefect) do
+ allow(Gitlab.config.repositories.storages['default']).to receive(:[]).and_call_original
+ allow(Gitlab.config.repositories.storages['default']).to receive(:[]).with('gitaly_address')
+ .and_return(TestEnv.praefect_socket_path)
+ end
+end