diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-08-10 18:01:01 -0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-08-28 15:48:09 -0300 |
commit | 4f17c6b7633c65a9d51dbcd9193914013707e226 (patch) | |
tree | 8c4523f15e7b40a9b7852cc5413669144370f263 /spec/services | |
parent | d7f61bae8b498a09180bb7e782a687ae2d0c3bae (diff) | |
download | gitlab-ce-4f17c6b7633c65a9d51dbcd9193914013707e226.tar.gz |
Track enqueued and ongoing MRs
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/merge_requests/merge_service_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/services/merge_requests/merge_service_spec.rb b/spec/services/merge_requests/merge_service_spec.rb index 5cfdb5372f3..0a007bdfc3b 100644 --- a/spec/services/merge_requests/merge_service_spec.rb +++ b/spec/services/merge_requests/merge_service_spec.rb @@ -12,6 +12,15 @@ describe MergeRequests::MergeService do end describe '#execute' do + it 'cleans up merge_jid from MergeRequest' do + merge_request.update_column(:merge_jid, 'hash-123') + service = described_class.new(project, user, commit_message: 'Awesome message') + + service.execute(merge_request) + + expect(merge_request.reload.merge_jid).to be_nil + end + context 'valid params' do let(:service) { described_class.new(project, user, commit_message: 'Awesome message') } |