diff options
author | Mark Fletcher <mark@gitlab.com> | 2016-12-14 20:45:39 +0000 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2016-12-16 10:52:59 +0000 |
commit | 9f97fa4d9f4e86e8f1ff1db4621bcf81390936da (patch) | |
tree | 3d5dae75cb1ce884b37d896d5d1316583d5f5c5f /spec/services/issues | |
parent | 2f736c6d41acb53f70755442972f43921c2ac6f2 (diff) | |
download | gitlab-ce-9f97fa4d9f4e86e8f1ff1db4621bcf81390936da.tar.gz |
Ensure issuable state changes only fire webhooks once
* Webhooks for close and reopen events now fired in respective services only
* Prevents generic 'update' webhooks firing too
Diffstat (limited to 'spec/services/issues')
-rw-r--r-- | spec/services/issues/update_service_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb index 500d224ff98..eafbea46905 100644 --- a/spec/services/issues/update_service_spec.rb +++ b/spec/services/issues/update_service_spec.rb @@ -376,5 +376,10 @@ describe Issues::UpdateService, services: true do let(:mentionable) { issue } include_examples 'updating mentions', Issues::UpdateService end + + include_examples 'issuable update service' do + let(:open_issuable) { issue } + let(:closed_issuable) { create(:closed_issue, project: project) } + end end end |