diff options
author | James Baer <jamesfbaer@gmail.com> | 2017-02-27 10:17:27 -0500 |
---|---|---|
committer | James Baer <jamesfbaer@gmail.com> | 2017-02-28 09:09:33 -0500 |
commit | 6bee72db6a0261d72280cbc3a5d934245135622a (patch) | |
tree | 5ac7b195416b48502e379bd8b58482e9ea5e58e1 /activerecord/test | |
parent | c971e7f151e76510196bb4ad21c1d7cbb1d0fe96 (diff) | |
download | rails-6bee72db6a0261d72280cbc3a5d934245135622a.tar.gz rails-6bee72db6a0261d72280cbc3a5d934245135622a.tar.bz2 rails-6bee72db6a0261d72280cbc3a5d934245135622a.zip |
Improve documentation for Testing Your Mailers [ci skip]
The current Basic Test Case example has the following assertion
```
assert_equal read_fixture('invite').join, email.body.to_s
```
email.body.to_s returns an empty string if both HTML and text templates
exist for a given mailer. This commit adds a note to section 11.2.2
explaining this and also suggests using email.text_part.body.to_s
and email.html_part.body.to_s as alternatives.
Diffstat (limited to 'activerecord/test')
0 files changed, 0 insertions, 0 deletions