Improve notification service tests
This commit is contained in:
parent
f49a2ac0df
commit
c04120c1c5
3 changed files with 22 additions and 11 deletions
|
@ -13,7 +13,7 @@ module Emails
|
|||
mail(to: recipient(recipient_id), subject: subject("changed issue ##{@issue.id}", @issue.title))
|
||||
end
|
||||
|
||||
def close_issue_email(recipient_id, issue_id, updated_by_user_id)
|
||||
def closed_issue_email(recipient_id, issue_id, updated_by_user_id)
|
||||
@issue = Issue.find issue_id
|
||||
@project = @issue.project
|
||||
@updated_by = User.find updated_by_user_id
|
||||
|
|
|
@ -33,7 +33,7 @@ class NotificationService
|
|||
# * project team members with notification level higher then Participating
|
||||
#
|
||||
def close_issue(issue, current_user)
|
||||
close_resource_email(issue, current_user, 'close_issue_email')
|
||||
close_resource_email(issue, current_user, 'closed_issue_email')
|
||||
end
|
||||
|
||||
# When we reassign an issue we should send next emails:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue