kshnurov / mandrill_dm

A basic Mandrill delivery method for Rails.
MIT License
46 stars 45 forks source link

Update `MandrillDm::DeliveryMethod` to capture the response from the Mandrill API #6

Closed spovich closed 9 years ago

spovich commented 9 years ago

Example usage would be something like:

message  = FooMailer.build(email).deliver_now
response = message.delivery_method.response

The response json will be formatted as indicated here: https://mandrillapp.com/api/docs/messages.html

Update the specs for MandrillDm::DeliveryMethod to better test the class behavior. Also, this splits tests into class tests and integration tests. These tests are taken (and only slightly modified) from the MYOB-Technology fork of mandrill_dm. Credit for these tests goes to @dueckes.