summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/mastodon_api_controller_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs21
1 files changed, 20 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 f1baa9953..23f63372c 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -292,7 +292,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
assert %{} = json_response(conn, 200)
- assert Repo.get(Activity, activity.id).data["type"] == "Tombstone"
+ refute Repo.get(Activity, activity.id)
end
test "when you didn't create it", %{conn: conn} do
@@ -308,6 +308,25 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
assert Repo.get(Activity, activity.id) == activity
end
+
+ # test "404 when making an attempt to get it" do
+ # activity = insert(:note_activity)
+ # author = User.get_by_ap_id(activity.data["actor"])
+
+ # conn =
+ # conn
+ # |> assign(:user, author)
+ # |> delete("/api/v1/statuses/#{activity.id}")
+
+ # assert %{} = json_response(conn, 200)
+
+ # conn =
+ # build_conn()
+ # |> assign(:user, author)
+ # |> get("/api/v1/statuses/#{activity.id}")
+
+ # assert %{} = json_response(conn, 200)
+ # end
end
describe "filters" do