summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/mastodon_api_controller_test.exs
diff options
context:
space:
mode:
authorTristan Mahé <gled@remote-shell.net>2018-07-19 17:44:18 -0700
committerTristan Mahé <gled@remote-shell.net>2018-07-19 17:44:18 -0700
commitbc2668bb63aee2c42cdea48782ba5ef291c17b45 (patch)
tree838d334208c4dadf23b974181c0ad4c17b199f8c /test/web/mastodon_api/mastodon_api_controller_test.exs
parent5469fb9561bb886deb8434e545dfb711eb20f341 (diff)
parent41b0ecef959df0a1cda71e56e256cacebe48d56f (diff)
downloadpleroma-bc2668bb63aee2c42cdea48782ba5ef291c17b45.tar.gz
pleroma-bc2668bb63aee2c42cdea48782ba5ef291c17b45.zip
Merge remote-tracking branch 'upstream/develop' into feature/filter_exif
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs5
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