summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-03-01 08:08:25 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-03-01 08:08:25 +0000
commitfd18bcef95bbc42eeac5db7f35023079be7b4cb9 (patch)
treedfb8b7fb1ff1e07890c89d3caeec3134b0477da5 /test
parent41217ffea0eb9a6a47d1fd431ef896c365abb1e6 (diff)
downloadredmine-fd18bcef95bbc42eeac5db7f35023079be7b4cb9.tar.gz
redmine-fd18bcef95bbc42eeac5db7f35023079be7b4cb9.zip
Rails3: test: add .to_s for mail's bodies check at functional/messages_controller_test.rb
On Rails3, mail's bodies must be checked calling 'encoded'. 'to_s' is alias of 'encoded' of Mail::Message of Rails3. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9033 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-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..5c04a65b1 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.to_s.include?('Message body')
# author
assert mail.bcc.include?('jsmith@somenet.foo')
# project member