diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-01 08:07:10 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-01 08:07:10 +0000 |
commit | 12ba0ba1c552151ffb015fcac68d682cc8e08e28 (patch) | |
tree | 2dbc8089e2f3908953ed2c10721cc3f76c1bb967 /test/functional/files_controller_test.rb | |
parent | e1d1a3a0c2e5472271d16b84b5580863d1adffab (diff) | |
download | redmine-12ba0ba1c552151ffb015fcac68d682cc8e08e28.tar.gz redmine-12ba0ba1c552151ffb015fcac68d682cc8e08e28.zip |
Rails3: test: add .to_s for mail's bodies check at functional/files_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@9031 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/files_controller_test.rb')
-rw-r--r-- | test/functional/files_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb index e37cc855e..08fbdf365 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.include?('testfile.txt') + assert mail.body.to_s.include?('testfile.txt') end def test_create_version_file |