summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/twitter_api_controller_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-05-01 06:21:59 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-05-01 06:21:59 +0300
commita92c713d9c761563c72d0f660574878aa569249a (patch)
treece88697749dbe26331b255883b4fa9631002e8b4 /test/web/twitter_api/twitter_api_controller_test.exs
parent270c3fe446a374202b6d64ce487f7df29ecb1c14 (diff)
parent0dd863f8f53d30d37e35d4ec2c4e34d09a266a85 (diff)
downloadpleroma-a92c713d9c761563c72d0f660574878aa569249a.tar.gz
pleroma-a92c713d9c761563c72d0f660574878aa569249a.zip
Merge branch 'develop' into issue/1276-2
Diffstat (limited to 'test/web/twitter_api/twitter_api_controller_test.exs')
-rw-r--r--test/web/twitter_api/twitter_api_controller_test.exs8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs
index ab0a2c3df..464d0ea2e 100644
--- a/test/web/twitter_api/twitter_api_controller_test.exs
+++ b/test/web/twitter_api/twitter_api_controller_test.exs
@@ -19,13 +19,9 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
end
test "with credentials, without any params" do
- %{user: current_user, conn: conn} =
- oauth_access(["read:notifications", "write:notifications"])
+ %{conn: conn} = oauth_access(["write:notifications"])
- conn =
- conn
- |> assign(:user, current_user)
- |> post("/api/qvitter/statuses/notifications/read")
+ conn = post(conn, "/api/qvitter/statuses/notifications/read")
assert json_response(conn, 400) == %{
"error" => "You need to specify latest_id",