Welcome to mirror list, hosted at ThFree Co, Russian Federation.

stored_repositories.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6a9ad43941d826322926d6e2fbb0ec0c5783d69c (plain)
1
2
3
4
5
6
7
8
9
10
11
RSpec.configure do |config|
  config.before(:all, :broken_storage) do
    FileUtils.rm_rf Gitlab.config.repositories.storages.broken.legacy_disk_path
  end

  config.before(:each, :broken_storage) do
    allow(Gitlab::GitalyClient).to receive(:call) do
      raise GRPC::Unavailable.new('Gitaly broken in this spec')
    end
  end
end