summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-12-09 13:53:35 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-12-09 13:53:35 +0000
commit4f6708641c0290f533079777661119c06c2f14ce (patch)
treef84bb8cd275a0fc8a9d92aab3de9bde708e805c6
parentAdds getEbuildsByFilter to Portage API (diff)
downloadgentoobrowse-api-4f6708641c0290f533079777661119c06c2f14ce.tar.bz2
gentoobrowse-api-4f6708641c0290f533079777661119c06c2f14ce.tar.xz
gentoobrowse-api-4f6708641c0290f533079777661119c06c2f14ce.zip
Assert of email body before asserting its contents
-rw-r--r--gentoobrowse-api/unittests/testNotifications.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gentoobrowse-api/unittests/testNotifications.cpp b/gentoobrowse-api/unittests/testNotifications.cpp
index 79ea08f..3dcdd5c 100644
--- a/gentoobrowse-api/unittests/testNotifications.cpp
+++ b/gentoobrowse-api/unittests/testNotifications.cpp
@@ -25,6 +25,7 @@ save(const std::string & name, Gentoo::EmailPtr e)
TidyDoc tdoc = tidyCreate();
BOOST_REQUIRE_EQUAL(1, tidyOptSetBool(tdoc, TidyIndentContent, yes));
BOOST_REQUIRE_EQUAL(1, tidyOptSetInt(tdoc, TidyWrapLen, 0));
+ BOOST_REQUIRE_EQUAL(2, e->body.size());
BOOST_REQUIRE_EQUAL(0, tidyParseString(tdoc, e->body[1]->payload.c_str()));
BOOST_REQUIRE_EQUAL(0, tidyCleanAndRepair(tdoc));
BOOST_REQUIRE_EQUAL(0, tidySaveFile(tdoc, (binDir / name).replace_extension(".html").c_str()));