diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2018-12-04 19:45:09 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2018-12-04 19:45:09 +0300 |
commit | 44ab3dbe2c3d25a1772b99679653eaf96d4fbd8b (patch) | |
tree | d751afcf6362bbe88ed165ba3d7d762c6ff573b3 | |
parent | 48e6193bf2c6a03068f1c6a96429fadffaa7794b (diff) | |
download | pleroma-44ab3dbe2c3d25a1772b99679653eaf96d4fbd8b.tar.gz pleroma-44ab3dbe2c3d25a1772b99679653eaf96d4fbd8b.zip |
[#210] Refactoring.
-rw-r--r-- | test/web/twitter_api/twitter_api_controller_test.exs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs index 8faa4b58e..21e844124 100644 --- a/test/web/twitter_api/twitter_api_controller_test.exs +++ b/test/web/twitter_api/twitter_api_controller_test.exs @@ -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 |