forked from AkkomaGang/akkoma
Fix digest test
This commit is contained in:
parent
63a0536d55
commit
4ed0a780b7
1 changed files with 7 additions and 1 deletions
|
@ -53,7 +53,13 @@ test "Sends digest to the given user" do
|
||||||
|
|
||||||
assert_email_sent(
|
assert_email_sent(
|
||||||
to: {user2.name, user2.email},
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue