aboutsummaryrefslogtreecommitdiff
path: root/test/user_test.exs
diff options
context:
space:
mode:
authorAlex S <alex.strizhakov@gmail.com>2019-04-14 19:45:56 +0700
committerAlex S <alex.strizhakov@gmail.com>2019-04-25 13:38:24 +0700
commit73d01857e3ff1737a4ea733a3f6c6419379ce8e8 (patch)
tree0330ba6351c22bc3810591c82c2d715e3143dc4b /test/user_test.exs
parent030a7876b42a0c925fd52474de514ae5e9171e55 (diff)
downloadpleroma-73d01857e3ff1737a4ea733a3f6c6419379ce8e8.tar.gz
bookmarks in separate table
Diffstat (limited to 'test/user_test.exs')
-rw-r--r--test/user_test.exs27
1 files changed, 0 insertions, 27 deletions
diff --git a/test/user_test.exs b/test/user_test.exs
index 42d570c50..7be47e5fb 100644
--- a/test/user_test.exs
+++ b/test/user_test.exs
@@ -1125,33 +1125,6 @@ defmodule Pleroma.UserTest do
end
end
- test "bookmarks" do
- user = insert(:user)
-
- {:ok, activity1} =
- CommonAPI.post(user, %{
- "status" => "heweoo!"
- })
-
- id1 = Object.normalize(activity1).data["id"]
-
- {:ok, activity2} =
- CommonAPI.post(user, %{
- "status" => "heweoo!"
- })
-
- id2 = Object.normalize(activity2).data["id"]
-
- assert {:ok, user_state1} = User.bookmark(user, id1)
- assert user_state1.bookmarks == [id1]
-
- assert {:ok, user_state2} = User.unbookmark(user, id1)
- assert user_state2.bookmarks == []
-
- assert {:ok, user_state3} = User.bookmark(user, id2)
- assert user_state3.bookmarks == [id2]
- end
-
test "follower count is updated when a follower is blocked" do
user = insert(:user)
follower = insert(:user)