summaryrefslogtreecommitdiffstats
path: root/test/functional/files_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/files_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/files_controller_test.rb')
-rw-r--r--test/functional/files_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb
index 08fbdf365..e37cc855e 100644
--- a/test/functional/files_controller_test.rb
+++ b/test/functional/files_controller_test.rb
@@ -74,7 +74,7 @@ class FilesControllerTest < ActionController::TestCase
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
assert_equal "[eCookbook] New file", mail.subject
- assert mail.body.to_s.include?('testfile.txt')
+ assert mail.body.include?('testfile.txt')
end
def test_create_version_file