debian-mirror-gitlab/spec/support/stored_repositories.rb
2021-06-08 01:23:25 +05:30

9 lines
233 B
Ruby

# frozen_string_literal: true
RSpec.configure do |config|
config.before(:each, :broken_storage) do
allow(Gitlab::GitalyClient).to receive(:call) do
raise GRPC::Unavailable, 'Gitaly broken in this spec'
end
end
end