mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Improve wording for approve comment
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -262,11 +262,11 @@ class SystemNoteService
|
||||
#
|
||||
# Example Note text:
|
||||
#
|
||||
# "Approved by @rspeicher"
|
||||
# "Approved this merge request"
|
||||
#
|
||||
# Returns the created Note object
|
||||
def self.approve_mr(noteable, user)
|
||||
body = "Approved by @#{user.username}"
|
||||
body = "Approved this merge request"
|
||||
|
||||
create_note(noteable: noteable, project: noteable.project, author: user, note: body)
|
||||
end
|
||||
|
||||
@@ -449,9 +449,9 @@ describe SystemNoteService do
|
||||
|
||||
it_behaves_like 'a system note'
|
||||
|
||||
context 'when assignee added' do
|
||||
context 'when merge request approved' do
|
||||
it 'sets the note text' do
|
||||
expect(subject.note).to eq "Approved by @#{author.username}"
|
||||
expect(subject.note).to eq "Approved this merge request"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user