gitlab-org--gitlab-foss/spec/support/gitaly.rb

9 lines
250 B
Ruby
Raw Normal View History

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