[#210] Refactoring.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Tue, 4 Dec 2018 16:45:09 +0000 (19:45 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Tue, 4 Dec 2018 16:45:09 +0000 (19:45 +0300)
test/web/twitter_api/twitter_api_controller_test.exs

index 8faa4b58ed79d5cdd0bd97c7d39047523cb95d84..21e8441240fb3ff867b58c1306940588fb58806b 100644 (file)
@@ -1260,14 +1260,13 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
       object = insert(:note)
       description = "Informative description of the image. Initial: #{object.data["name"]}}"
 
-      _conn =
-        conn
-        |> assign(:user, user)
-        |> post("/api/media/metadata/create.json", %{
-          "media_id" => object.id,
-          "alt_text" => %{"text" => description}
-        })
-        |> json_response(:no_content)
+      conn
+      |> assign(:user, user)
+      |> post("/api/media/metadata/create.json", %{
+        "media_id" => object.id,
+        "alt_text" => %{"text" => description}
+      })
+      |> json_response(:no_content)
 
       object = Repo.get!(Object, object.id)
       assert object.data["name"] == description