aboutsummaryrefslogtreecommitdiff
path: root/test/web/twitter_api/twitter_api_controller_test.exs
diff options
context:
space:
mode:
authordtluna <dtluna@openmailbox.org>2017-04-24 12:09:11 +0300
committerdtluna <dtluna@openmailbox.org>2017-04-24 12:09:11 +0300
commit5b6070ec404f83055db8c9be083b6d3a2a30df75 (patch)
treef77b7bd7e7f78fa243323813be69f3048fd6bad6 /test/web/twitter_api/twitter_api_controller_test.exs
parent1e3791877caa15cc6ef5873c747a4a466ba6cbd4 (diff)
downloadpleroma-5b6070ec404f83055db8c9be083b6d3a2a30df75.tar.gz
Deny whitespace statuses
Diffstat (limited to 'test/web/twitter_api/twitter_api_controller_test.exs')
-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 0bd27c8c7..766268ce9 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