diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-12-27 22:49:05 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-01-02 22:22:02 +0300 |
commit | 65e3a1e9e9a316a2bbbcd49e22b858b8b1bd9890 (patch) | |
tree | 37aed42681aad3d05aa646c05140a712bd4d5beb /spec/lib/gitlab/gitaly_client | |
parent | 0aa87bbe13ca74a791bf5c70a12d8e7f6876fd5a (diff) |
Simplify conflict resolution interface and code
- Add a Gitlab::Git::Conflict::Resolution class to encapsulate
resolution data
- Simplify conflict file collection assembly
Diffstat (limited to 'spec/lib/gitlab/gitaly_client')
-rw-r--r-- | spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb b/spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb index 8ebe0a4a31e..b9641de7eda 100644 --- a/spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb +++ b/spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb @@ -65,9 +65,12 @@ describe Gitlab::GitalyClient::ConflictsService do let(:source_branch) { 'master' } let(:target_branch) { 'feature' } let(:commit_message) { 'Solving conflicts' } + let(:resolution) do + Gitlab::Git::Conflict::Resolution.new(user, files, commit_message) + end subject do - client.resolve_conflicts(source_repository, user, files, source_branch, target_branch, commit_message) + client.resolve_conflicts(source_repository, resolution, source_branch, target_branch) end it 'sends an RPC request' do |