2017-07-06 08:45:29 -04:00
|
|
|
RSpec.configure do |config|
|
|
|
|
config.before(:each) do |example|
|
2017-11-14 13:53:32 -05:00
|
|
|
if example.metadata[:disable_gitaly]
|
|
|
|
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(false)
|
|
|
|
else
|
|
|
|
next if example.metadata[:skip_gitaly_mock]
|
|
|
|
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(true)
|
|
|
|
end
|
2017-03-28 21:23:45 -04:00
|
|
|
end
|
|
|
|
end
|