diff options
author | Lain Iwakura <lain@soykaf.club> | 2017-12-18 16:56:03 +0100 |
---|---|---|
committer | Lain Iwakura <lain@soykaf.club> | 2017-12-18 16:56:03 +0100 |
commit | 47887ac8489d929f6c948814a8bacd14fc579ab9 (patch) | |
tree | 86c259b9c7c99c072a5186314992a168f86e322a /test | |
parent | 846d59a536544b246960322c874d1569fd79c54b (diff) | |
download | pleroma-47887ac8489d929f6c948814a8bacd14fc579ab9.tar.gz pleroma-47887ac8489d929f6c948814a8bacd14fc579ab9.zip |
MastoAPI: Fix always-sensitive bugs.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 8bfad5265..80e15f35e 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -35,7 +35,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do {:ok, [_activity]} = OStatus.fetch_activity_from_url("https://shitposter.club/notice/2827873") conn = conn - |> get("/api/v1/timelines/public") + |> get("/api/v1/timelines/public", %{"local" => "False"}) assert length(json_response(conn, 200)) == 2 @@ -50,9 +50,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do conn = conn |> assign(:user, user) - |> post("/api/v1/statuses", %{"status" => "cofe", "spoiler_text" => "2hu"}) + |> post("/api/v1/statuses", %{"status" => "cofe", "spoiler_text" => "2hu", "sensitive" => "false"}) - assert %{"content" => "cofe", "id" => id, "spoiler_text" => "2hu"} = json_response(conn, 200) + assert %{"content" => "cofe", "id" => id, "spoiler_text" => "2hu", "sensitive" => false} = json_response(conn, 200) assert Repo.get(Activity, id) end |