diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-12 01:44:25 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-17 20:44:30 +0300 |
commit | c463a834058b5cede382334932891cf3e4cdb35d (patch) | |
tree | f2866375c93cdcd17b50bb3fd4e73539d31e1a42 /spec/lib/gitlab/gitaly_client | |
parent | 029670020761e827dc25374cebb1cb299c1c5ef5 (diff) |
Incorporate RepositoryService.ApplyGitattributes Gitaly RPC
Diffstat (limited to 'spec/lib/gitlab/gitaly_client')
-rw-r--r-- | spec/lib/gitlab/gitaly_client/repository_service_spec.rb | 13 |
1 files changed, 13 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 e7b71a737d0..fd5f984601e 100644 --- a/spec/lib/gitlab/gitaly_client/repository_service_spec.rb +++ b/spec/lib/gitlab/gitaly_client/repository_service_spec.rb @@ -60,4 +60,17 @@ describe Gitlab::GitalyClient::RepositoryService do client.repository_size end end + + describe '#apply_gitattributes' do + let(:revision) { 'master' } + + it 'sends an apply_gitattributes message' do + expect_any_instance_of(Gitaly::RepositoryService::Stub) + .to receive(:apply_gitattributes) + .with(gitaly_request_with_path(storage_name, relative_path), kind_of(Hash)) + .and_return(double(:apply_gitattributes_response)) + + client.apply_gitattributes(revision) + end + end end |