diff options
author | dtluna <dtluna@openmailbox.org> | 2017-04-24 12:09:11 +0300 |
---|---|---|
committer | dtluna <dtluna@openmailbox.org> | 2017-04-24 12:09:11 +0300 |
commit | 5b6070ec404f83055db8c9be083b6d3a2a30df75 (patch) | |
tree | f77b7bd7e7f78fa243323813be69f3048fd6bad6 /test | |
parent | 1e3791877caa15cc6ef5873c747a4a466ba6cbd4 (diff) | |
download | pleroma-5b6070ec404f83055db8c9be083b6d3a2a30df75.tar.gz |
Deny whitespace statuses
Diffstat (limited to 'test')
-rw-r--r-- | test/web/twitter_api/twitter_api_controller_test.exs | 3 |
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 |