aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordtluna <dtluna@openmailbox.org>2017-04-24 14:17:23 +0300
committerdtluna <dtluna@openmailbox.org>2017-04-24 14:17:23 +0300
commit42105497caeed307a082f18d71bfd10343f8169f (patch)
tree302a5794014adbeacbf3634749bc70852853bc51 /test
parentf723b2369160ee08f7155e299aa44410b26b7e51 (diff)
parent5b6070ec404f83055db8c9be083b6d3a2a30df75 (diff)
downloadpleroma-42105497caeed307a082f18d71bfd10343f8169f.tar.gz
Merge branch 'bugfix/deny-empty-posts' of ssh.gitgud.io:dtluna/pleroma into bugfix/deny-self-repeats
Diffstat (limited to 'test')
-rw-r--r--test/web/twitter_api/twitter_api_controller_test.exs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs
index a5551fa82..eb952a230 100644
--- a/test/web/twitter_api/twitter_api_controller_test.exs
+++ b/test/web/twitter_api/twitter_api_controller_test.exs
@@ -42,6 +42,9 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
conn = conn_with_creds |> post(request_path, %{ status: "" })
assert json_response(conn, 400) == error_response
+ conn = conn_with_creds |> post(request_path, %{ status: " " })
+ assert json_response(conn, 400) == error_response
+
conn = conn_with_creds |> post(request_path, %{ status: "Nice meme." })
assert json_response(conn, 200) == ActivityRepresenter.to_map(Repo.one(Activity), %{user: user})
end