class MnoEnterprise::MailAdapters::TestAdapter
Test Adapter
for MnoEnterprise::MailClient
Add messages to an internal array instead of sending them
Public Class Methods
deliver(*args)
click to toggle source
Send a template @see Adapter#deliver
# File lib/mno_enterprise/mail_adapters/test_adapter.rb, line 9 def deliver(*args) send_template(*args) end
send_template(*args)
click to toggle source
Send the provided template with options SparkpostClient.send_template(template_name(string), template_content(array), message(hash))
# File lib/mno_enterprise/mail_adapters/test_adapter.rb, line 15 def send_template(*args) base_deliveries.push(*args) end