diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-04-29 17:51:59 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-04-29 17:51:59 +0200 |
commit | 69922bc724736fb07bf36beaef42d944158d9269 (patch) | |
tree | fc204e0621f9c32029b43a07a4ebbd0d1dd95198 /test/web/websub/websub_test.exs | |
parent | ca40dda04c114c32ca9ecfe5f998a083448a189c (diff) | |
download | pleroma-69922bc724736fb07bf36beaef42d944158d9269.tar.gz pleroma-69922bc724736fb07bf36beaef42d944158d9269.zip |
Add user info gathering.
Diffstat (limited to 'test/web/websub/websub_test.exs')
-rw-r--r-- | test/web/websub/websub_test.exs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/web/websub/websub_test.exs b/test/web/websub/websub_test.exs index ca04a55cd..1b1ef3fa6 100644 --- a/test/web/websub/websub_test.exs +++ b/test/web/websub/websub_test.exs @@ -112,8 +112,15 @@ defmodule Pleroma.Web.WebsubTest do {:ok, %{status_code: 200, body: doc}} end - {:ok, discovered} = Websub.discover(topic, getter) - assert %{hub: "https://mastodon.social/api/push", url: topic} == discovered + {:ok, discovered} = Websub.gather_feed_data(topic, getter) + expected = %{ + hub: "https://mastodon.social/api/push", + uri: "https://mastodon.social/users/lambadalambda", + nickname: "lambadalambda", + name: "Critical Value" + } + + assert expected == discovered end test "calls the hub, requests topic" do |