Commit ace9ff4a46d2cc97446fb984d86c3e468ff2e661

Authored by Dmitriy Zaporozhets
2 parents 627cb28f 903090d1

Merge pull request #5305 from saymedia/master

Fix the sigil for merge request emails
app/mailers/emails/notes.rb
... ... @@ -18,7 +18,7 @@ module Emails
18 18 @note = Note.find(note_id)
19 19 @merge_request = @note.noteable
20 20 @project = @note.project
21   - mail(to: recipient(recipient_id), subject: subject("note for merge request !#{@merge_request.iid}"))
  21 + mail(to: recipient(recipient_id), subject: subject("note for merge request ##{@merge_request.iid}"))
22 22 end
23 23  
24 24 def note_wall_email(recipient_id, note_id)
... ...
spec/mailers/notify_spec.rb
... ... @@ -320,7 +320,7 @@ describe Notify do
320 320 it_behaves_like 'a note email'
321 321  
322 322 it 'has the correct subject' do
323   - should have_subject /note for merge request !#{merge_request.iid}/
  323 + should have_subject /note for merge request ##{merge_request.iid}/
324 324 end
325 325  
326 326 it 'contains a link to the merge request note' do
... ...