diff options
author | dtluna <dtluna@openmailbox.org> | 2017-04-04 03:30:07 +0300 |
---|---|---|
committer | dtluna <dtluna@openmailbox.org> | 2017-04-04 03:30:07 +0300 |
commit | 8075badafe60d396c236d8d6d911cbb60ae9c5b6 (patch) | |
tree | 3433b5002fab6e8463b60d72e1f7b1b08c78a0ce /test | |
parent | a83fa053de4c95cab0b54f3b5fc9ee3622fca63b (diff) | |
download | pleroma-8075badafe60d396c236d8d6d911cbb60ae9c5b6.tar.gz |
Add Follow activity insertion
Diffstat (limited to 'test')
-rw-r--r-- | test/web/twitter_api/twitter_api_test.exs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs index 99b6a6cb2..ad932131a 100644 --- a/test/web/twitter_api/twitter_api_test.exs +++ b/test/web/twitter_api/twitter_api_test.exs @@ -107,11 +107,13 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do { :ok, user } = UserBuilder.insert { :ok, following } = UserBuilder.insert(%{nickname: "guy"}) - {:ok, user, following } = TwitterAPI.follow(user, following.id) + {:ok, user, following, activity } = TwitterAPI.follow(user, following.id) user = Repo.get(User, user.id) + follow = Repo.get(Activity, activity.id) assert user.following == [User.ap_followers(following)] + assert follow == activity end test "Unfollow another user" do |