Commit 7d2a2035 authored by Kim "BKC" Carlbäcker's avatar Kim "BKC" Carlbäcker

skip_gitaly_mock disables Gitaly in specs

parent b6c10a90
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment