Fixed: German umlauts in Subject get striped with ruby1.8 (#11065).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9796 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-06-10 08:15:22 +00:00
parent c73823cd0f
commit 26ff9e1c26
3 changed files with 39 additions and 2 deletions
+9
View File
@@ -347,6 +347,15 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal 'caaf384198bcbc9563ab5c058acd73cd', attachment.digest
end
def test_add_issue_with_iso_8859_1_subject
issue = submit_email(
'subject_as_iso-8859-1.eml',
:issue => {:project => 'ecookbook'}
)
assert_kind_of Issue, issue
assert_equal 'Testmail from Webmail: ä ö ü...', issue.subject
end
def test_should_ignore_emails_from_locked_users
User.find(2).lock!