diff options
author | dtluna <dtluna@openmailbox.org> | 2017-04-24 14:17:23 +0300 |
---|---|---|
committer | dtluna <dtluna@openmailbox.org> | 2017-04-24 14:17:23 +0300 |
commit | 42105497caeed307a082f18d71bfd10343f8169f (patch) | |
tree | 302a5794014adbeacbf3634749bc70852853bc51 /test/web/twitter_api/twitter_api_controller_test.exs | |
parent | f723b2369160ee08f7155e299aa44410b26b7e51 (diff) | |
parent | 5b6070ec404f83055db8c9be083b6d3a2a30df75 (diff) | |
download | pleroma-42105497caeed307a082f18d71bfd10343f8169f.tar.gz |
Merge branch 'bugfix/deny-empty-posts' of ssh.gitgud.io:dtluna/pleroma into bugfix/deny-self-repeats
Diffstat (limited to 'test/web/twitter_api/twitter_api_controller_test.exs')
-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 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 |