aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Ryan Johnson <ryan@iambismark.net>2013-06-24 09:33:18 -0700
committerGravatar Ryan Johnson <ryan@iambismark.net>2013-06-24 09:33:18 -0700
commit876a84992ad13848a9f77d2f0cd4a8c8d3c0b75a (patch)
tree9919b4e76dd8b241147538786b9e16cf6cf34db8 /tests
parente77cd05ac0cfc0627fbb87902ac0e383ad50ab57 (diff)
Fix for MCMessageBuilder copy constructor
Fix for HTML body being overwritten with text body.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-all.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-all.mm b/tests/test-all.mm
index cfa37b66..2201d6d5 100644
--- a/tests/test-all.mm
+++ b/tests/test-all.mm
@@ -67,7 +67,13 @@ static mailcore::Data * testMessageBuilder()
MCLog("%s", data->bytes());
+ mailcore::MessageBuilder * msg2 = new mailcore::MessageBuilder(msg);
+ mailcore::String *htmlBody = msg->htmlBody();
+ mailcore::String *htmlBody2 = msg2->htmlBody();
+ MCAssert(htmlBody->isEqual(htmlBody2));
+
msg->release();
+ msg2->release();
return data;
}