summaryrefslogtreecommitdiffstats
path: root/test/functional/messages_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-03-01 11:40:22 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-03-01 11:40:22 +0000
commit2df6c99e675d3edaa2aac2e473cfee2304afa5cf (patch)
tree1d93b4fda9aadf2c630b88ace8e73a8cdd9ef7c1 /test/functional/messages_controller_test.rb
parent30ce0cd8fb28957f0d15423e12de7024fb94ac50 (diff)
downloadredmine-2df6c99e675d3edaa2aac2e473cfee2304afa5cf.tar.gz
redmine-2df6c99e675d3edaa2aac2e473cfee2304afa5cf.zip
back out from r9031 to r9036
On Rails3, 'to_s' is not alias of 'encoded'. 'to_s' is alias of 'decoded'. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9037 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 5c04a65b1..b24a444d8 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.to_s.include?('Message body')
+ assert mail.body.include?('Message body')
# author
assert mail.bcc.include?('jsmith@somenet.foo')
# project member