diff options
author | Nick Pellant <nick@nickpellant.com> | 2014-06-30 16:46:31 +0100 |
---|---|---|
committer | Nick Pellant <nick@nickpellant.com> | 2014-06-30 16:46:31 +0100 |
commit | a3a73d1a119a99c1a3dcc0c0fa95dbcd22d69d87 (patch) | |
tree | 8d6f4ba096704856c6fdc25defb16152dd6d8074 /guides | |
parent | 088b4c3e7673902831077e45ba6fcc7c90045f7c (diff) | |
download | rails-a3a73d1a119a99c1a3dcc0c0fa95dbcd22d69d87.tar.gz rails-a3a73d1a119a99c1a3dcc0c0fa95dbcd22d69d87.tar.bz2 rails-a3a73d1a119a99c1a3dcc0c0fa95dbcd22d69d87.zip |
Fix 10.3 invite_email.body assert_match example.
Currently there is no implicit conversion for Mail::Body to string
therefore .to_s must be applied. This is exampled in 10.2.2.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/testing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index a55466341a..09833ed78c 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -996,7 +996,7 @@ class UserControllerTest < ActionController::TestCase assert_equal "You have been invited by me@example.com", invite_email.subject assert_equal 'friend@example.com', invite_email.to[0] - assert_match(/Hi friend@example.com/, invite_email.body) + assert_match(/Hi friend@example.com/, invite_email.body.to_s) end end ``` |