Rename RPC 'Exists' to 'RepositoryExists'
This commit is contained in:
parent
a0fa59f61e
commit
11eda5c255
|
@ -10,7 +10,7 @@ module Gitlab
|
|||
def exists?
|
||||
request = Gitaly::RepositoryExistsRequest.new(repository: @gitaly_repo)
|
||||
|
||||
GitalyClient.call(@storage, :repository_service, :exists, request).exists
|
||||
GitalyClient.call(@storage, :repository_service, :repository_exists, request).exists
|
||||
end
|
||||
|
||||
def garbage_collect(create_bitmap)
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::GitalyClient::RepositoryService do
|
||||
set(:project) { create(:project) }
|
||||
let(:storage_name) { project.repository_storage }
|
||||
let(:relative_path) { project.path_with_namespace + '.git' }
|
||||
let(:client) { described_class.new(project.repository) }
|
||||
|
||||
describe '#exists?' do
|
||||
it 'sends an exists message' do
|
||||
expect_any_instance_of(Gitaly::RepositoryService::Stub)
|
||||
.to receive(:exists)
|
||||
.with(gitaly_request_with_path(storage_name, relative_path), kind_of(Hash))
|
||||
.and_call_original
|
||||
|
||||
client.exists?
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue