diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-05-23 12:33:49 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-05-25 12:13:32 -0300 |
commit | 005496354457cefba4f54e2d19f53888b2182727 (patch) | |
tree | 4b363f420d04cc09d7bee7657f7e1eefd5aa4e6b /spec/workers | |
parent | e44016b90ad900836b2cbc83ebb9f58c39b3576a (diff) | |
download | gitlab-ce-005496354457cefba4f54e2d19f53888b2182727.tar.gz |
Remove unecessary commit pattern check
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/process_commit_worker_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/workers/process_commit_worker_spec.rb b/spec/workers/process_commit_worker_spec.rb index 12b6d567b8e..4e036285e8c 100644 --- a/spec/workers/process_commit_worker_spec.rb +++ b/spec/workers/process_commit_worker_spec.rb @@ -20,14 +20,6 @@ describe ProcessCommitWorker do worker.perform(project.id, -1, commit.to_hash) end - it 'does not process the commit when no issues are referenced' do - allow(worker).to receive(:build_commit).and_return(double(matches_cross_reference_regex?: false)) - - expect(worker).not_to receive(:process_commit_message) - - worker.perform(project.id, user.id, commit.to_hash) - end - it 'processes the commit message' do expect(worker).to receive(:process_commit_message).and_call_original |