Ensure correct state in self-unfollow.
authoreal <eal@waifu.club>
Mon, 20 Nov 2017 07:26:31 +0000 (09:26 +0200)
committereal <eal@waifu.club>
Mon, 20 Nov 2017 07:26:31 +0000 (09:26 +0200)
test/user_test.exs

index 8ec23c7514ab0c62d392ec28eec88c77829743a5..31c5962e2d0f4023e2922f0d58c34d302d523a44 100644 (file)
@@ -71,6 +71,7 @@ defmodule Pleroma.UserTest do
 
     {:error, _} = User.unfollow(user, user)
 
+    user = Repo.get(User, user.id)
     assert user.following == [user.ap_id]
   end