diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-04-05 15:27:09 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-04-06 13:23:22 -0300 |
commit | e892eeb5460078d127070f51c31bd5fc41a2c876 (patch) | |
tree | 4bd6043057c1307a0525c9e0478120cdfc6ffe2a /spec/lib/gitlab/gitaly_client/repository_service_spec.rb | |
parent | b81c6f142c38c9005b56ee5cf3677dac1b1adca8 (diff) | |
download | gitlab-ce-e892eeb5460078d127070f51c31bd5fc41a2c876.tar.gz |
Add calculate_checksum method to the Gitaly repository client
Diffstat (limited to 'spec/lib/gitlab/gitaly_client/repository_service_spec.rb')
-rw-r--r-- | spec/lib/gitlab/gitaly_client/repository_service_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/lib/gitlab/gitaly_client/repository_service_spec.rb b/spec/lib/gitlab/gitaly_client/repository_service_spec.rb index 111b1b35fa0..21592688bf0 100644 --- a/spec/lib/gitlab/gitaly_client/repository_service_spec.rb +++ b/spec/lib/gitlab/gitaly_client/repository_service_spec.rb @@ -134,4 +134,15 @@ describe Gitlab::GitalyClient::RepositoryService do client.squash_in_progress?(squash_id) end end + + describe '#calculate_checksum' do + it 'sends a calculate_checksum message' do + expect_any_instance_of(Gitaly::RepositoryService::Stub) + .to receive(:calculate_checksum) + .with(gitaly_request_with_path(storage_name, relative_path), kind_of(Hash)) + .and_return(double(checksum: 0)) + + client.calculate_checksum + end + end end |