diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-09-19 12:26:28 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-09-19 12:26:28 +0000 |
commit | 5dce096cf8b645d430bfdce8add8a577b595dc23 (patch) | |
tree | 69ac2bf5373bffd1e869d9b1c9f54e2c912cb767 /spec/lib/gitlab/git/repository_spec.rb | |
parent | 3172de0df3801125c23d1811a53d1467dec45645 (diff) | |
download | gitlab-ce-5dce096cf8b645d430bfdce8add8a577b595dc23.tar.gz |
Use standalone diff stats RPC on every comparison view
Diffstat (limited to 'spec/lib/gitlab/git/repository_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git/repository_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/repository_spec.rb b/spec/lib/gitlab/git/repository_spec.rb index 58c260ee1f0..d02536a2fb4 100644 --- a/spec/lib/gitlab/git/repository_spec.rb +++ b/spec/lib/gitlab/git/repository_spec.rb @@ -1136,6 +1136,14 @@ describe Gitlab::Git::Repository, :seed_helper do expect(collection).to be_a(Enumerable) expect(collection.to_a).to be_empty end + + it 'returns no Gitaly::DiffStats when there is a nil SHA' do + collection = repository.diff_stats(nil, 'master') + + expect(collection).to be_a(Gitlab::Git::DiffStatsCollection) + expect(collection).to be_a(Enumerable) + expect(collection.to_a).to be_empty + end end describe "#ls_files" do |