diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-10-09 16:40:37 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-10-12 22:03:15 -0300 |
commit | faa9bd402d3521b3f7b4cc2583f8ef1b3cceb821 (patch) | |
tree | 550ca6c6907c1075d8c0a4092710c500dcf12329 /spec/services | |
parent | 3fcab51ebb0f3156b5d732d050b292cd3e081262 (diff) | |
download | gitlab-ce-faa9bd402d3521b3f7b4cc2583f8ef1b3cceb821.tar.gz |
Create a Gitlab::Git submodule for conlict-related files
Rename classes to (hopefully) clearer names while we're doing that.
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/merge_requests/conflicts/resolve_service_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/services/merge_requests/conflicts/resolve_service_spec.rb b/spec/services/merge_requests/conflicts/resolve_service_spec.rb index 4ecd318b5b6..5376083e7f5 100644 --- a/spec/services/merge_requests/conflicts/resolve_service_spec.rb +++ b/spec/services/merge_requests/conflicts/resolve_service_spec.rb @@ -204,16 +204,16 @@ describe MergeRequests::Conflicts::ResolveService do it 'raises a ResolutionError error' do expect { service.execute(user, invalid_params) } - .to raise_error(Gitlab::Git::Merge::ResolutionError) + .to raise_error(Gitlab::Git::Conflict::Resolver::ResolutionError) end end context 'when the content of a file is unchanged' do - let(:merge) do - MergeRequests::Conflicts::ListService.new(merge_request).conflicts.merge + let(:resolver) do + MergeRequests::Conflicts::ListService.new(merge_request).conflicts.resolver end let(:regex_conflict) do - merge.conflict_for_path('files/ruby/regex.rb', 'files/ruby/regex.rb') + resolver.conflict_for_path('files/ruby/regex.rb', 'files/ruby/regex.rb') end let(:invalid_params) do @@ -235,7 +235,7 @@ describe MergeRequests::Conflicts::ResolveService do it 'raises a ResolutionError error' do expect { service.execute(user, invalid_params) } - .to raise_error(Gitlab::Git::Merge::ResolutionError) + .to raise_error(Gitlab::Git::Conflict::Resolver::ResolutionError) end end @@ -255,7 +255,7 @@ describe MergeRequests::Conflicts::ResolveService do it 'raises a ResolutionError error' do expect { service.execute(user, invalid_params) } - .to raise_error(Gitlab::Git::Merge::ResolutionError) + .to raise_error(Gitlab::Git::Conflict::Resolver::ResolutionError) end end end |