Commit aa05be53 authored by Jose's avatar Jose Committed by Chantal Rollison

Remove comma from weight system notes

parent 5d538054
......@@ -21,7 +21,7 @@ module EE
# Returns the created Note object
def change_weight_note(noteable, project, author)
body = noteable.weight ? "changed weight to **#{noteable.weight}**," : 'removed the weight'
body = noteable.weight ? "changed weight to **#{noteable.weight}**" : 'removed the weight'
create_note(NoteSummary.new(noteable, project, author, body, action: 'weight'))
end
end
......
---
title: Remove the comma from the weight system notes
merge_request: 5854
author:
type: changed
......@@ -6,6 +6,6 @@ describe Issuable::CommonSystemNotesService do
let(:issuable) { create(:issue) }
describe '#execute' do
it_behaves_like 'system note creation', { weight: 5 }, 'changed weight to **5**,'
it_behaves_like 'system note creation', { weight: 5 }, 'changed weight to **5**'
end
end
......@@ -39,7 +39,7 @@ describe SystemNoteService do
end
it 'sets the note text' do
expect(subject.note).to eq "changed weight to **4**,"
expect(subject.note).to eq "changed weight to **4**"
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