diff options
Diffstat (limited to 'actionmailer/test/quoting_test.rb')
-rw-r--r-- | actionmailer/test/quoting_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionmailer/test/quoting_test.rb b/actionmailer/test/quoting_test.rb index 0b145b1f77..41d4ab680b 100644 --- a/actionmailer/test/quoting_test.rb +++ b/actionmailer/test/quoting_test.rb @@ -19,6 +19,13 @@ class QuotingTest < Test::Unit::TestCase assert_equal unquoted, original end + # test an email that has been created using \r\n newlines, instead of + # \n newlines. + def test_email_quoted_with_0d0a + mail = TMail::Mail.parse(IO.read("#{File.dirname(__FILE__)}/fixtures/raw_email_quoted_with_0d0a")) + assert_match %r{Elapsed time}, mail.body + end + private # This whole thing *could* be much simpler, but I don't think Tempfile, |