summaryrefslogtreecommitdiffstats
path: root/test/functional/messages_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-04 13:28:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-04 13:28:18 +0000
commit3aaf2b9ed00751d0aa793c98861513ac5302ec10 (patch)
treed497313144509b6bb0a43c2a10e395424549dcfe /test/functional/messages_controller_test.rb
parentb1d5f42237295895412ff559f3f65a05cd65cf96 (diff)
downloadredmine-3aaf2b9ed00751d0aa793c98861513ac5302ec10.tar.gz
redmine-3aaf2b9ed00751d0aa793c98861513ac5302ec10.zip
Adds helpers for testing email body.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9086 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/messages_controller_test.rb')
-rw-r--r--test/functional/messages_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index b24a444d8..70df6f0b5 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -106,7 +106,7 @@ class MessagesControllerTest < ActionController::TestCase
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
assert_equal "[#{message.board.project.name} - #{message.board.name} - msg#{message.root.id}] Test created message", mail.subject
- assert mail.body.include?('Message body')
+ assert_mail_body_match 'Message body', mail
# author
assert mail.bcc.include?('jsmith@somenet.foo')
# project member