rschmukler / powerdrill

Mandrill, with Power
55 stars 9 forks source link

Added setAPI method for test purpose #16

Open vsadokhin opened 8 years ago

vsadokhin commented 8 years ago

Hello

I don't want to send real emails from my test environment as well as bother mandrill service. Instead I would like to catch the library calls on my side for further processing and checks inside tests. As soon as API_ENDPOINT variable is private and sendTemplate/sendHtml methods are private too I didn't find better solution but adding a setter for API_ENDPOINT. It will be handy if you add this to your code.

Thanks, Vasiliy