diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-03-15 15:29:16 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-03-15 15:29:16 +0000 |
commit | b7123a8f59fc6c5124c7e39f998cec9a6db5c690 (patch) | |
tree | dedbf85eb7aa4ac734bcb3b2374978b7af069c70 /spec/models/issue_spec.rb | |
parent | 18778503eaec61b840b6fc0dbf54022e322f4960 (diff) | |
parent | dd53a9c0132d48393ca11e29825b599a5a1454a7 (diff) | |
download | gitlab-ce-b7123a8f59fc6c5124c7e39f998cec9a6db5c690.tar.gz |
Merge branch '27271-missing-time-spent-in-issue-webhook' into 'master'
Include time tracking attributes in webhooks payload
Closes #27271
See merge request !9942
Diffstat (limited to 'spec/models/issue_spec.rb')
-rw-r--r-- | spec/models/issue_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index f67fbe79bde..9ffcb88bafd 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -635,4 +635,15 @@ describe Issue, models: true do end end end + + describe '#hook_attrs' do + let(:attrs_hash) { subject.hook_attrs } + + it 'includes time tracking attrs' do + expect(attrs_hash).to include(:total_time_spent) + expect(attrs_hash).to include(:human_time_estimate) + expect(attrs_hash).to include(:human_total_time_spent) + expect(attrs_hash).to include('time_estimate') + end + end end |