summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2017-11-30 12:58:51 +0000
committerRémy Coutable <remy@rymai.me>2017-11-30 12:58:51 +0000
commita14bd24a023220507f8f77e7a0962ca259fb9605 (patch)
tree4d77ee8b718316b4f8278d29b1ac3d7edbf2a8f9 /spec/spec_helper.rb
parentfeece7713247a063bfa71ab701f8a164e6fa71bb (diff)
downloadgitlab-ce-a14bd24a023220507f8f77e7a0962ca259fb9605.tar.gz
Set an artificial $HOME for gitaly in test
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 6310ea1b52b..242a2230b67 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -207,3 +207,6 @@ Shoulda::Matchers.configure do |config|
with.library :rails
end
end
+
+# Prevent Rugged from picking up local developer gitconfig.
+Rugged::Settings['search_path_global'] = Rails.root.join('tmp/tests').to_s