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)
|
current_user = User.lookup(id: 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
attachments = []
|
||||||
|
if article
|
||||||
|
attachments = article.attachments_inline
|
||||||
|
end
|
||||||
NotificationFactory::Mailer.notification(
|
NotificationFactory::Mailer.notification(
|
||||||
template: template,
|
template: template,
|
||||||
user: user,
|
user: user,
|
||||||
|
@ -203,6 +207,7 @@ class Transaction::Notification
|
||||||
},
|
},
|
||||||
references: ticket.get_references,
|
references: ticket.get_references,
|
||||||
main_object: ticket,
|
main_object: ticket,
|
||||||
|
attachments: attachments,
|
||||||
)
|
)
|
||||||
Rails.logger.debug "sent ticket email notifiaction to agent (#{@item[:type]}/#{ticket.id}/#{user.email})"
|
Rails.logger.debug "sent ticket email notifiaction to agent (#{@item[:type]}/#{ticket.id}/#{user.email})"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue