summaryrefslogtreecommitdiff
path: root/spec/models/issue_spec.rb
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2017-03-14 11:56:15 -0500
committerRuben Davila <rdavila84@gmail.com>2017-03-14 11:56:15 -0500
commitdd53a9c0132d48393ca11e29825b599a5a1454a7 (patch)
tree9f35948e592d4d53dc0c187082bb3505a30ab30b /spec/models/issue_spec.rb
parentffcddb295950729dbc4ee7a3c0e32f7dec00da99 (diff)
downloadgitlab-ce-dd53a9c0132d48393ca11e29825b599a5a1454a7.tar.gz
Include time tracking attributes in webhooks payload27271-missing-time-spent-in-issue-webhook
Diffstat (limited to 'spec/models/issue_spec.rb')
-rw-r--r--spec/models/issue_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb
index bba9058f394..898a9c8da35 100644
--- a/spec/models/issue_spec.rb
+++ b/spec/models/issue_spec.rb
@@ -620,4 +620,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