From ba553f94248340b54b32cee1fcbd41295713d180 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 5 Nov 2006 21:56:18 +0000 Subject: Add assert_emails and assert_no_emails to test the number of emails delivered. Closes #6479. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionmailer/CHANGELOG | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'actionmailer/CHANGELOG') diff --git a/actionmailer/CHANGELOG b/actionmailer/CHANGELOG index 165d28652a..c876c05333 100644 --- a/actionmailer/CHANGELOG +++ b/actionmailer/CHANGELOG @@ -1,5 +1,16 @@ *SVN* +* Add assert_emails and assert_no_emails to test the number of emails delivered. #6479 [Jonathan Viney] + # Assert total number of emails delivered: + assert_emails 0 + ContactMailer.deliver_contact + assert_emails 1 + + # Assert number of emails delivered within a block: + assert_emails 1 do + post :signup, :name => 'Jonathan' + end + * Make mime version default to 1.0. closes #2323 [ror@andreas-s.net] * Make sure quoted-printable text is decoded correctly when only portions of the text are encoded. closes #3154. [jon@siliconcircus.com] -- cgit v1.2.3