Commit 709d9b75 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'pms-lowercase-approval-system-notes' into 'master'

Make approval system notes lowercase

See merge request !1125
parents 54428eda 8098e589
......@@ -476,17 +476,17 @@ module SystemNoteService
#
# Example Note text:
#
# "Approved this merge request"
# "approved this merge request"
#
# Returns the created Note object
def approve_mr(noteable, user)
body = "Approved this merge request"
body = "approved this merge request"
create_note(noteable: noteable, project: noteable.project, author: user, note: body)
end
def unapprove_mr(noteable, user)
body = "Unapproved this merge request"
body = "unapproved this merge request"
create_note(noteable: noteable, project: noteable.project, author: user, note: body)
end
......
---
title: Make approval system notes lowercase
merge_request: 1125
author:
......@@ -769,7 +769,7 @@ describe SystemNoteService, services: true do
context 'when merge request approved' do
it 'sets the note text' do
expect(subject.note).to eq "Approved this merge request"
expect(subject.note).to eq "approved this merge request"
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