Merge branch 'bugfix/deny-empty-posts' of ssh.gitgud.io:dtluna/pleroma into bugfix/deny-self-repeats
This commit is contained in:
commit
42105497ca
2 changed files with 12 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue