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
This commit is contained in:
parent
e1d1a3a0c2
commit
12ba0ba1c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue