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

repository_service_spec.rb « gitaly_client « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a9f3fc130cb0ab762eafd7fc89493214d9b55ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'spec_helper'

describe Gitlab::GitalyClient::RepositoryService do
  set(:project) { create(:empty_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