2017-03-29 01:23:45 +00:00
|
|
|
if Gitlab::GitalyClient.enabled?
|
|
|
|
RSpec.configure do |config|
|
2017-05-31 21:06:01 +00:00
|
|
|
config.before(:each) do |example|
|
|
|
|
next if example.metadata[:skip_gitaly_mock]
|
2017-03-29 01:23:45 +00:00
|
|
|
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|