aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/transactions_test.rb
diff options
context:
space:
mode:
authorJames Baer <jamesfbaer@gmail.com>2017-02-27 10:17:27 -0500
committerJames Baer <jamesfbaer@gmail.com>2017-02-28 09:09:33 -0500
commit6bee72db6a0261d72280cbc3a5d934245135622a (patch)
tree5ac7b195416b48502e379bd8b58482e9ea5e58e1 /activerecord/test/cases/transactions_test.rb
parentc971e7f151e76510196bb4ad21c1d7cbb1d0fe96 (diff)
downloadrails-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/cases/transactions_test.rb')
0 files changed, 0 insertions, 0 deletions