diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
commit | ee664acb356f8123f4f6b00b73c1e1cf0866c7fb (patch) | |
tree | f8479f94a28f66654c6a4f6fb99bad6b4e86a40e /spec/presenters/event_presenter_spec.rb | |
parent | 62f7d5c5b69180e82ae8196b7b429eeffc8e7b4f (diff) |
Add latest changes from gitlab-org/gitlab@15-5-stable-eev15.5.0-rc42
Diffstat (limited to 'spec/presenters/event_presenter_spec.rb')
-rw-r--r-- | spec/presenters/event_presenter_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/presenters/event_presenter_spec.rb b/spec/presenters/event_presenter_spec.rb index 5a67fd92c9d..9093791421d 100644 --- a/spec/presenters/event_presenter_spec.rb +++ b/spec/presenters/event_presenter_spec.rb @@ -51,6 +51,14 @@ RSpec.describe EventPresenter do it 'returns milestone for a milestone event' do expect(group_event.present).to have_attributes(target_type_name: 'milestone') end + + it 'returns the issue_type for issue events' do + expect(build(:event, :for_issue, :created).present).to have_attributes(target_type_name: 'issue') + end + + it 'returns the issue_type for work item events' do + expect(build(:event, :for_work_item, :created).present).to have_attributes(target_type_name: 'task') + end end describe '#note_target_type_name' do |