Improve wording for approve comment

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets
2015-06-13 10:40:03 +02:00
parent 80e30a9262
commit f7d0932d2e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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