summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-11-14 19:53:32 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-11-14 19:53:32 +0100
commita5ee4e8a33ae275d532365d11dab71191c9c576c (patch)
treef3d17b7983e67a4969d904a29e7d74e2b16a5e94
parent3d24c01a1925475b35d072e0cad971939a9e8564 (diff)
downloadgitlab-ce-gitaly-fix-broken-specs.tar.gz
skip_gitaly_mock disables Gitaly in specsgitaly-fix-broken-specs
-rw-r--r--spec/support/gitaly.rb7
1 files 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