diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-03-23 15:51:34 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-03-23 15:51:34 +0100 |
commit | 9ad045fd587f83386d9582136c971dbcd4410b67 (patch) | |
tree | 54494c309d4f9b34cae343b8a2e4cc4a5878f4d0 /test/web/twitter_api/twitter_api_test.exs | |
parent | 30650e5bc610810d129bf02891a73ac11340710b (diff) | |
download | pleroma-9ad045fd587f83386d9582136c971dbcd4410b67.tar.gz |
Return user specific json for logged in users.
Diffstat (limited to 'test/web/twitter_api/twitter_api_test.exs')
-rw-r--r-- | test/web/twitter_api/twitter_api_test.exs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index 3cb3196d9..f68a49f6a 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -22,10 +22,12 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do test "fetch public statuses" do %{ public: activity, user: user } = ActivityBuilder.public_and_non_public - statuses = TwitterAPI.fetch_public_statuses() + {:ok, follower } = UserBuilder.insert(%{name: "dude", ap_id: "idididid", following: [User.ap_followers(user)]}) + + statuses = TwitterAPI.fetch_public_statuses(follower) assert length(statuses) == 1 - assert Enum.at(statuses, 0) == ActivityRepresenter.to_map(activity, %{user: user}) + assert Enum.at(statuses, 0) == ActivityRepresenter.to_map(activity, %{user: user, for: follower}) end test "fetch friends' statuses" do |