summaryrefslogtreecommitdiff
path: root/spec/support/gitaly.rb
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2017-03-28 22:23:45 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2017-04-11 16:00:44 -0300
commitd6cc8feb6ce0a8e39a1bc8830b932155713357da (patch)
treee06ffc7ac8168f1857d9ee92bc8e4bcdc123810e /spec/support/gitaly.rb
parent5e1a802b15af4ba991f9ed85a691f1a925cc0edf (diff)
downloadgitlab-ce-d6cc8feb6ce0a8e39a1bc8830b932155713357da.tar.gz
Setup and run a Gitaly server for testing if GitalyClient is enabledgitaly-testing
Diffstat (limited to 'spec/support/gitaly.rb')
-rw-r--r--spec/support/gitaly.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/gitaly.rb b/spec/support/gitaly.rb
new file mode 100644
index 00000000000..7aca902fc61
--- /dev/null
+++ b/spec/support/gitaly.rb
@@ -0,0 +1,7 @@
+if Gitlab::GitalyClient.enabled?
+ RSpec.configure do |config|
+ config.before(:each) do
+ allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true)
+ end
+ end
+end