From a5ee4e8a33ae275d532365d11dab71191c9c576c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Tue, 14 Nov 2017 19:53:32 +0100 Subject: skip_gitaly_mock disables Gitaly in specs --- spec/support/gitaly.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/support/gitaly.rb b/spec/support/gitaly.rb index 89fb362cf14..929a66628ca 100644 --- a/spec/support/gitaly.rb +++ b/spec/support/gitaly.rb @@ -1,6 +1,9 @@ RSpec.configure do |config| config.before(:each) do |example| - next if example.metadata[:skip_gitaly_mock] - allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true) + if example.metadata[:skip_gitaly_mock] + allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(false) + else + allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true) + end end end -- cgit v1.2.1