Ensure correct state in self-unfollow.

This commit is contained in:
eal 2017-11-20 09:26:31 +02:00
parent bd921ca5d7
commit 8d4e7b32c9

View 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