diff options
-rw-r--r-- | gentoobrowse-api/unittests/testNotifications.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gentoobrowse-api/unittests/testNotifications.cpp b/gentoobrowse-api/unittests/testNotifications.cpp index 700b3a6..2783eb8 100644 --- a/gentoobrowse-api/unittests/testNotifications.cpp +++ b/gentoobrowse-api/unittests/testNotifications.cpp @@ -4,6 +4,7 @@ #include "mockDefs.h" #include <definedDirs.h> #include <fstream> +#include <regex> #include <tidy.h> using namespace std::string_literals; @@ -71,7 +72,8 @@ BOOST_AUTO_TEST_CASE( testSignup ) for (auto p : e->body) { BOOST_REQUIRE(p->payload.find("Welcome to Gentoo Browse") != std::string::npos); BOOST_REQUIRE(p->payload.find("https://gentoobrowse.randomdan.homeip.net/user/verification/some-guid/testuser") != std::string::npos); - BOOST_REQUIRE(p->payload.find("confirmation page: some-guid") != std::string::npos); + BOOST_REQUIRE(std::regex_search(p->payload, + std::regex("confirmation\\s+page:\\s+some-guid"))); } } |