Add following TwAPI endpoint.
This commit is contained in:
parent
e2e0cd75b7
commit
75e51b190d
7 changed files with 78 additions and 1 deletions
|
|
@ -23,4 +23,15 @@ defmodule Pleroma.UserTest do
|
|||
|
||||
assert expected_followers_collection == User.ap_followers(user)
|
||||
end
|
||||
|
||||
test "follow takes a user and an id and tries to follow another user" do
|
||||
{ :ok, user } = UserBuilder.insert
|
||||
{ :ok, following } = UserBuilder.insert(%{nickname: "guy"})
|
||||
|
||||
{:ok, user } = User.follow(user, following)
|
||||
|
||||
user = Repo.get(User, user.id)
|
||||
|
||||
assert user.following == [User.ap_followers(following)]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue