Don't crypt raw iolists.

This commit is contained in:
Roger Braun 2017-05-01 22:02:07 +02:00
commit 89c1e90eb2
2 changed files with 9 additions and 1 deletions

View file

@ -167,4 +167,11 @@ defmodule Pleroma.Web.WebsubTest do
{:error, websub} = Websub.request_subscription(websub, poster, 1000)
assert websub.state == "rejected"
end
test "sign a text" do
signed = Websub.sign("secret", "text")
assert signed == "B8392C23690CCF871F37EC270BE1582DEC57A503"
signed = Websub.sign("secret", [[""], ['']])
end
end