Improved tests.

This commit is contained in:
Martin Edenhofer 2016-07-12 01:35:30 +02:00
parent acc71eeb23
commit ef06ae771e

View file

@ -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