X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fsalmon%2Fsalmon_test.exs;h=cf70c908f364181779c3a68b20e07845e791382b;hb=611ca385dea3d611a97579000311cc42684305e6;hp=f2b729da9b3651d0c2ca29a71800da601c8249be;hpb=fecbd099cda8d71e616ea266255384e3e4cc946a;p=akkoma diff --git a/test/web/salmon/salmon_test.exs b/test/web/salmon/salmon_test.exs index f2b729da9..cf70c908f 100644 --- a/test/web/salmon/salmon_test.exs +++ b/test/web/salmon/salmon_test.exs @@ -35,7 +35,7 @@ defmodule Pleroma.Web.Salmon.SalmonTest do end test "it decodes a friendica public key" do - key = Salmon.decode_key(@magickey_friendica) + _key = Salmon.decode_key(@magickey_friendica) end test "returns a public and private key from a pem" do @@ -59,7 +59,6 @@ defmodule Pleroma.Web.Salmon.SalmonTest do end test "it gets a magic key" do - # TODO: Make test local salmon = File.read!("test/fixtures/salmon2.xml") {:ok, key} = Salmon.fetch_magic_key(salmon) @@ -86,11 +85,11 @@ defmodule Pleroma.Web.Salmon.SalmonTest do "context" => note.data["context"] } - {:ok, activity} = Repo.insert(%Activity{data: activity_data}) + {:ok, activity} = Repo.insert(%Activity{data: activity_data, recipients: activity_data["to"]}) user = Repo.get_by(User, ap_id: activity.data["actor"]) {:ok, user} = Pleroma.Web.WebFinger.ensure_keys_present(user) - poster = fn (url, data, headers, options) -> + poster = fn (url, _data, _headers, _options) -> assert url == "http://example.org/salmon" end Salmon.publish(user, activity, poster)