aboutsummaryrefslogtreecommitdiff
path: root/test/web/twitter_api/twitter_api_controller_test.exs
diff options
context:
space:
mode:
authorFrancis Dinh <normandy@firemail.cc>2018-05-22 05:41:17 -0400
committerFrancis Dinh <normandy@firemail.cc>2018-05-22 05:41:17 -0400
commit72b93d13f8208f22f9a771dc8ba18c474fc81849 (patch)
tree7a7dcce70334b5f0e7cf548251e676af24753871 /test/web/twitter_api/twitter_api_controller_test.exs
parent55f9aefd08dd922013fcd55c02552ddbb89bcda3 (diff)
downloadpleroma-72b93d13f8208f22f9a771dc8ba18c474fc81849.tar.gz
Hook up block/unblock to TwitterAPI
Diffstat (limited to 'test/web/twitter_api/twitter_api_controller_test.exs')
-rw-r--r--test/web/twitter_api/twitter_api_controller_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs
index 02aba0bc8..625303b84 100644
--- a/test/web/twitter_api/twitter_api_controller_test.exs
+++ b/test/web/twitter_api/twitter_api_controller_test.exs
@@ -443,7 +443,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
test "with credentials", %{conn: conn, user: current_user} do
blocked = insert(:user)
- {:ok, current_user} = User.block(current_user, blocked)
+ {:ok, current_user, blocked} = TwitterAPI.block(current_user, %{"user_id" => blocked.id})
assert User.blocks?(current_user, blocked)
conn =