diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2017-05-30 21:30:05 +0200 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2017-06-02 18:33:18 +0200 |
commit | 4d1e987ec3263feda7a2f3469e31f5839e25731b (patch) | |
tree | 893c6a8e26011e1cafe34c77c70d2b3de32bffb6 /spec/lib/gitlab/git | |
parent | 358662a9f7474b41755ec0128efaaa8bef3cb249 (diff) | |
download | gitlab-ce-4d1e987ec3263feda7a2f3469e31f5839e25731b.tar.gz |
Use the new Gitaly CommitDiff RPCfix/use-new-gitaly-commit-diff-rpc
Diffstat (limited to 'spec/lib/gitlab/git')
-rw-r--r-- | spec/lib/gitlab/git/diff_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/gitlab/git/diff_spec.rb b/spec/lib/gitlab/git/diff_spec.rb index 8e24168ad71..9c2e8a298c6 100644 --- a/spec/lib/gitlab/git/diff_spec.rb +++ b/spec/lib/gitlab/git/diff_spec.rb @@ -110,23 +110,23 @@ EOT end end - context 'using a Gitaly::CommitDiffResponse' do + context 'using a GitalyClient::Diff' do let(:diff) do described_class.new( - Gitaly::CommitDiffResponse.new( + Gitlab::GitalyClient::Diff.new( to_path: ".gitmodules", from_path: ".gitmodules", old_mode: 0100644, new_mode: 0100644, from_id: '357406f3075a57708d0163752905cc1576fceacc', to_id: '8e5177d718c561d36efde08bad36b43687ee6bf0', - raw_chunks: raw_chunks + patch: raw_patch ) ) end context 'with a small diff' do - let(:raw_chunks) { [@raw_diff_hash[:diff]] } + let(:raw_patch) { @raw_diff_hash[:diff] } it 'initializes the diff' do expect(diff.to_hash).to eq(@raw_diff_hash) @@ -138,7 +138,7 @@ EOT end context 'using a diff that is too large' do - let(:raw_chunks) { ['a' * 204800] } + let(:raw_patch) { 'a' * 204800 } it 'prunes the diff' do expect(diff.diff).to be_empty |