diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-01-21 09:23:35 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-01-21 09:23:35 +0300 |
commit | 41e233200730dca4a0d6d846d44653eef4de0fec (patch) | |
tree | 2920b8740145114b034fcdc860b2bc1b89f406dc /test/web/mastodon_api/controllers/status_controller_test.exs | |
parent | a5db044e579ed9923e610cdf89dff6146d9b0986 (diff) | |
parent | ab36459464311389c2929ff1c48537889066a9f8 (diff) | |
download | pleroma-41e233200730dca4a0d6d846d44653eef4de0fec.tar.gz pleroma-41e233200730dca4a0d6d846d44653eef4de0fec.zip |
Merge branch 'develop' into feature/tag_feed
Diffstat (limited to 'test/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/status_controller_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs index 307221c5d..b03b4b344 100644 --- a/test/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/web/mastodon_api/controllers/status_controller_test.exs @@ -638,6 +638,13 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do assert to_string(activity.id) == id end + test "favoriting twice will just return 200", %{conn: conn} do + activity = insert(:note_activity) + + post(conn, "/api/v1/statuses/#{activity.id}/favourite") + assert post(conn, "/api/v1/statuses/#{activity.id}/favourite") |> json_response(200) + end + test "returns 400 error for a wrong id", %{conn: conn} do conn = post(conn, "/api/v1/statuses/1/favourite") |