debian-mirror-gitlab/spec/lib/gitlab/gitaly_client/cleanup_service_spec.rb

20 lines
633 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
require 'spec_helper'
describe Gitlab::GitalyClient::CleanupService do
let(:project) { create(:project) }
let(:storage_name) { project.repository_storage }
let(:relative_path) { project.disk_path + '.git' }
let(:client) { described_class.new(project.repository) }
2019-07-31 22:56:46 +05:30
describe '#apply_bfg_object_map_stream' do
it 'sends an apply_bfg_object_map_stream message' do
2019-02-15 15:39:39 +05:30
expect_any_instance_of(Gitaly::CleanupService::Stub)
2019-07-31 22:56:46 +05:30
.to receive(:apply_bfg_object_map_stream)
2019-02-15 15:39:39 +05:30
.with(kind_of(Enumerator), kind_of(Hash))
2019-07-31 22:56:46 +05:30
.and_return([])
2019-02-15 15:39:39 +05:30
2019-07-31 22:56:46 +05:30
client.apply_bfg_object_map_stream(StringIO.new)
2019-02-15 15:39:39 +05:30
end
end
end