I am thinking quite a time about how to do TDD using fixtures with ActionMailer. The main Problem is how to generate the fixtures. I want to cover the following scenarios:
- Receiving of Plain Text Mail
- Receiving of HTML Mail
- Receiving of Mail with Plain Text and HTML
- Receiving of Mail with Attachments
Another relating question is: If I've generated the fixtures I want can I just pass the content of them into the corresponding mailers receive method?
Aucun commentaire:
Enregistrer un commentaire