diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-02 23:30:36 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-02 23:33:15 +0300 |
commit | 2fe3a20638789a8fb6e1a8e63cd5eb2247a9308a (patch) | |
tree | 0b48a8a5d264d3f1bbae061e29869971dc9962af /test | |
parent | c47da0e65da32848b1f7e8cecce33a46d6f0115f (diff) | |
download | pleroma-2fe3a20638789a8fb6e1a8e63cd5eb2247a9308a.tar.gz pleroma-2fe3a20638789a8fb6e1a8e63cd5eb2247a9308a.zip |
Make error message about author's inability to vote more sensible
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 9c1db37db..c158c4df2 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -3649,7 +3649,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do assert conn |> assign(:user, user) |> post("/api/v1/polls/#{object.id}/votes", %{"choices" => [1]}) - |> json_response(422) == %{"error" => "Already voted"} + |> json_response(422) == %{"error" => "Poll's author can't vote"} object = Object.get_by_id(object.id) |