aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-09-28 00:03:24 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-09-28 00:03:24 +0000
commit50ab06435353144582f6afbf37402aef13c2b3f1 (patch)
tree8bf4e414c478469b20095b6db108c0eb96b8af68 /test
parenta0f42ecbca7d1aabc0fb699084865231e32ec6d9 (diff)
parent9202904da9b48eb2a3884b8e89ea879e01d44b9a (diff)
downloadpleroma-50ab06435353144582f6afbf37402aef13c2b3f1.tar.gz
Merge branch 'bugfix/post-empty-status' into 'develop'
status_controller.ex: Posting media status without content defined See merge request pleroma/pleroma!1735
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/controllers/status_controller_test.exs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs
index c0121ac63..b194feae6 100644
--- a/test/web/mastodon_api/controllers/status_controller_test.exs
+++ b/test/web/mastodon_api/controllers/status_controller_test.exs
@@ -99,7 +99,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
NaiveDateTime.to_iso8601(expiration.scheduled_at)
end
- test "posting an empty status with an attachment", %{conn: conn} do
+ test "posting an undefined status with an attachment", %{conn: conn} do
user = insert(:user)
file = %Plug.Upload{
@@ -114,8 +114,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
conn
|> assign(:user, user)
|> post("/api/v1/statuses", %{
- "media_ids" => [to_string(upload.id)],
- "status" => ""
+ "media_ids" => [to_string(upload.id)]
})
assert json_response(conn, 200)