diff options
author | kaniini <nenolod@gmail.com> | 2018-08-16 15:23:04 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2018-08-16 15:23:04 +0000 |
commit | f2fa09c50fde8db4e619872ef6121e90a69324a6 (patch) | |
tree | 4d34037c5fc6d1a3c05a0b061f5279caef1bd671 /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 718882b326f00c8315bca5acc439b92aa37bf021 (diff) | |
parent | 5fbb14f5ecbbd9feeed2a303c2619fbbba07d70e (diff) | |
download | pleroma-f2fa09c50fde8db4e619872ef6121e90a69324a6.tar.gz pleroma-f2fa09c50fde8db4e619872ef6121e90a69324a6.zip |
Merge branch 'develop' into 'patch-2'
# Conflicts:
# mix.exs
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index d1812457d..9e33c1d04 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -736,16 +736,19 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do filename: "an_image.jpg" } + desc = "Description of the image" + user = insert(:user) conn = conn |> assign(:user, user) - |> post("/api/v1/media", %{"file" => file}) + |> post("/api/v1/media", %{"file" => file, "description" => desc}) assert media = json_response(conn, 200) assert media["type"] == "image" + assert media["description"] == desc end test "hashtag timeline", %{conn: conn} do |