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

20 lines
609 B
Ruby
Raw Normal View History

2019-02-13 22:33:31 +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) }
describe '#apply_bfg_object_map' do
it 'sends an apply_bfg_object_map message' do
expect_any_instance_of(Gitaly::CleanupService::Stub)
.to receive(:apply_bfg_object_map)
.with(kind_of(Enumerator), kind_of(Hash))
.and_return(double)
client.apply_bfg_object_map(StringIO.new)
end
end
end