From f58e268e38f781c618773307da4e3273ad912671 Mon Sep 17 00:00:00 2001 From: Jonathan Garvin Date: Wed, 16 Jan 2013 19:19:31 -0700 Subject: clarify awkward sentence re: email testing --- 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 7747318d32..0b3bed8dbe 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -945,7 +945,7 @@ Cheers! This is the right time to understand a little more about writing tests for your mailers. The line `ActionMailer::Base.delivery_method = :test` in `config/environments/test.rb` sets the delivery method to test mode so that email will not actually be delivered (useful to avoid spamming your users while testing) but instead it will be appended to an array (`ActionMailer::Base.deliveries`). -However often in unit tests, mails will not actually be sent, simply constructed, as in the example above, where the precise content of the email is checked against what it should be. +This way, emails are not actually sent, simply constructed. The precise content of the email can then be checked against what is expected, as in the example above. ### Functional Testing -- cgit v1.2.3