summaryrefslogtreecommitdiffstats
path: root/test/unit/mail_handler_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r--test/unit/mail_handler_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index 73040f766..5f0b3e3e0 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -628,6 +628,11 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal 'The html part.', issue.description
end
+ def test_empty_text_and_html_part_should_make_an_empty_description
+ issue = submit_email('empty_text_and_html_part.eml', :issue => {:project => 'ecookbook'})
+ assert_equal '', issue.description
+ end
+
def test_attachment_text_part_should_be_added_as_issue_attachment
issue = submit_email('multiple_text_parts.eml', :issue => {:project => 'ecookbook'})
assert_not_include 'Plain text attachment', issue.description