Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit a3a73d1a119a99c1a3dcc0c0fa95dbcd22d69d87 1 parent 088b4c3
@nickpellant nickpellant authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  guides/source/testing.md
View
2  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
```
Please sign in to comment.
Something went wrong with that request. Please try again.