2017-03-28 17:27:44 +00:00
|
|
|
RSpec.configure do |config|
|
2017-05-17 16:17:15 +00:00
|
|
|
config.before(:all, :broken_storage) do
|
2018-03-14 13:42:49 +00:00
|
|
|
FileUtils.rm_rf Gitlab.config.repositories.storages.broken.legacy_disk_path
|
2017-05-17 16:17:15 +00:00
|
|
|
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
|
2017-03-28 17:27:44 +00:00
|
|
|
end
|