update test

This commit is contained in:
Maksim Pechnikov 2018-12-02 22:05:28 +03:00
commit 6cfdc11e32
7 changed files with 384 additions and 19 deletions

View file

@ -15,6 +15,7 @@ defmodule Pleroma.Web.Salmon.SalmonTest do
mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
:ok
end
test "decodes a salmon" do
{:ok, salmon} = File.read("test/fixtures/salmon.xml")
{:ok, doc} = Salmon.decode_and_validate(@magickey, salmon)