mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 14:46:05 +10:00
Merge branch 'pr-9938' into 'master'
Merge pull request GH-9938 from huacnlee/hotfix/note_mail_with_notification Hotfix note mail with notification See merge request !2288
This commit is contained in:
@@ -48,7 +48,7 @@ module Emails
|
||||
|
||||
yield
|
||||
|
||||
SentNotification.record(@note, recipient_id, reply_key)
|
||||
SentNotification.record_note(@note, recipient_id, reply_key)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -52,6 +52,9 @@ describe NotificationService, services: true do
|
||||
it do
|
||||
add_users_with_subscription(note.project, issue)
|
||||
|
||||
# Ensure create SentNotification by noteable = issue 6 times, not noteable = note
|
||||
expect(SentNotification).to receive(:record).with(issue, any_args).exactly(6).times
|
||||
|
||||
ActionMailer::Base.deliveries.clear
|
||||
|
||||
notification.new_note(note)
|
||||
|
||||
Reference in New Issue
Block a user