Commit 5230b688 authored by Ash McKenzie's avatar Ash McKenzie

Merge branch '262660-fix-iteration-system-notes-icon' into 'master'

Fix empty icon for iteration system notes

See merge request gitlab-org/gitlab!45642
parents 9209da4e 63c98c42
......@@ -14,6 +14,7 @@ module EE
'issue_removed_from_epic' => 'epic',
'issue_changed_epic' => 'epic',
'epic_date_changed' => 'calendar',
'iteration' => 'iteration',
'weight' => 'weight',
'relate_epic' => 'epic',
'unrelate_epic' => 'epic',
......
---
title: Fix icon for iteration-related system notes
merge_request: 45642
author:
type: fixed
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe SystemNoteHelper do
describe '.system_note_icon_name' do
subject(:system_note_icon_name) { helper.system_note_icon_name(note) }
context 'for an iteration note' do
let(:iteration_event) { build_stubbed(:resource_iteration_event) }
let(:note) { IterationNote.from_event(iteration_event, resource: iteration_event.issue) }
it 'returns the iteration icon name' do
expect(system_note_icon_name).to eq('iteration')
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment