Improved tests.
This commit is contained in:
parent
acc71eeb23
commit
ef06ae771e
1 changed files with 5 additions and 0 deletions
|
@ -191,6 +191,10 @@ class Transaction::Notification
|
|||
current_user = User.lookup(id: 1)
|
||||
end
|
||||
|
||||
attachments = []
|
||||
if article
|
||||
attachments = article.attachments_inline
|
||||
end
|
||||
NotificationFactory::Mailer.notification(
|
||||
template: template,
|
||||
user: user,
|
||||
|
@ -203,6 +207,7 @@ class Transaction::Notification
|
|||
},
|
||||
references: ticket.get_references,
|
||||
main_object: ticket,
|
||||
attachments: attachments,
|
||||
)
|
||||
Rails.logger.debug "sent ticket email notifiaction to agent (#{@item[:type]}/#{ticket.id}/#{user.email})"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue