diff options
Diffstat (limited to 'spec/lib/gitlab/hook_data/issuable_builder_spec.rb')
-rw-r--r-- | spec/lib/gitlab/hook_data/issuable_builder_spec.rb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/spec/lib/gitlab/hook_data/issuable_builder_spec.rb b/spec/lib/gitlab/hook_data/issuable_builder_spec.rb index 569d5dcc757..97a89b319ea 100644 --- a/spec/lib/gitlab/hook_data/issuable_builder_spec.rb +++ b/spec/lib/gitlab/hook_data/issuable_builder_spec.rb @@ -42,7 +42,15 @@ describe Gitlab::HookData::IssuableBuilder do [{ id: 1, title: 'foo' }], [{ id: 1, title: 'foo' }, { id: 2, title: 'bar' }] ], - total_time_spent: [1, 2] + total_time_spent: [1, 2], + assignees: [ + [], + [{ + name: "Foo Bar", + username: "foobar", + avatar_url: "http://www.example.com/my-avatar.jpg" + }] + ] } end let(:data) { builder.build(user: user, changes: changes) } @@ -58,6 +66,14 @@ describe Gitlab::HookData::IssuableBuilder do total_time_spent: { previous: 1, current: 2 + }, + assignees: { + previous: [], + current: [{ + name: "Foo Bar", + username: "foobar", + avatar_url: "http://www.example.com/my-avatar.jpg" + }] } })) end |