2020-03-25 14:08:10 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-01-18 13:11:20 -05:00
|
|
|
require_relative 'helpers/gitaly_setup'
|
2020-03-25 14:08:10 -04:00
|
|
|
|
|
|
|
RSpec.configure do |config|
|
|
|
|
config.before(:each, :praefect) do
|
|
|
|
allow(Gitlab.config.repositories.storages['default']).to receive(:[]).and_call_original
|
|
|
|
allow(Gitlab.config.repositories.storages['default']).to receive(:[]).with('gitaly_address')
|
2022-01-18 13:11:20 -05:00
|
|
|
.and_return(GitalySetup.praefect_socket_path)
|
2020-03-25 14:08:10 -04:00
|
|
|
end
|
|
|
|
end
|