From a3a73d1a119a99c1a3dcc0c0fa95dbcd22d69d87 Mon Sep 17 00:00:00 2001 From: Nick Pellant Date: Mon, 30 Jun 2014 16:46:31 +0100 Subject: 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. --- guides/source/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') 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 ``` -- cgit v1.2.3