diff options
Diffstat (limited to 'test/web/mastodon_api')
| -rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index a00a11f8b..c8b929501 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -56,6 +56,17 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do      assert Repo.get(Activity, id)    end +  test "posting a sensitive status", %{conn: conn} do +    user = insert(:user) + +    conn = conn +    |> assign(:user, user) +    |> post("/api/v1/statuses", %{"status" => "cofe", "sensitive" => true}) + +    assert %{"content" => "cofe", "id" => id, "sensitive" => true} = json_response(conn, 200) +    assert Repo.get(Activity, id) +  end +    test "replying to a status", %{conn: conn} do      user = insert(:user) | 
