debian-mirror-gitlab/spec/support/praefect.rb

12 lines
388 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
2022-03-02 08:16:31 +05:30
require_relative 'helpers/gitaly_setup'
2020-04-22 19:07:51 +05:30
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-03-02 08:16:31 +05:30
.and_return(GitalySetup.praefect_socket_path)
2020-04-22 19:07:51 +05:30
end
end