← Back to Upcase

MailViews on rails 4.1.x


(Ker Ruben Ramos) #1

Hi guys, now that we have mail preview in rails 4.1.0. Got a tut on how to make a good test for email?


(Derek Prior) #2

I don’t see mail preview as something that helps you with your tests, but rather something that lets you inspect emails in your browser with some setup required to initialize the mailers.

I can test emails themselves by creating the mail and asserting against to, from, subject, body, etc. I test integration with the app by using email spec to check that email was delivered after some action.


(Ker Ruben Ramos) #3

Yep, already considered. I was thinking it wrong.

You can close this thread. Thanks