Fix retweet spec.
This commit is contained in:
parent
2f0e13abe2
commit
22e936372e
|
@ -344,8 +344,8 @@ test "with credentials", %{conn: conn, user: current_user} do
|
||||||
|> with_credentials(current_user.nickname, "test")
|
|> with_credentials(current_user.nickname, "test")
|
||||||
|> post(request_path)
|
|> post(request_path)
|
||||||
activity = Repo.get(Activity, note_activity.id)
|
activity = Repo.get(Activity, note_activity.id)
|
||||||
current_user = Repo.get_by(User, ap_id: note_activity.data["actor"])
|
activity_user = Repo.get_by(User, ap_id: note_activity.data["actor"])
|
||||||
assert json_response(response, 200) == ActivityRepresenter.to_map(activity, %{user: current_user})
|
assert json_response(response, 200) == ActivityRepresenter.to_map(activity, %{user: activity_user, for: current_user})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue