Fix digest test

This commit is contained in:
Tusooa Zhu 2022-03-01 20:27:45 -05:00 committed by Sam Therapy
parent dff9733943
commit 7e05ec625d
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 7 additions and 1 deletions

View File

@ -53,7 +53,13 @@ test "Sends digest to the given user" do
assert_email_sent(
to: {user2.name, user2.email},
html_body: ~r/here is what you've missed!/i
html_body:
Regex.compile!(
"here is what you've missed!"
|> Phoenix.HTML.html_escape()
|> Phoenix.HTML.safe_to_string(),
"i"
)
)
end
end