Fix retweet spec.

This commit is contained in:
Roger Braun 2017-04-26 08:55:00 +02:00
parent 2f0e13abe2
commit 22e936372e
1 changed files with 2 additions and 2 deletions

View File

@ -344,8 +344,8 @@ test "with credentials", %{conn: conn, user: current_user} do
|> with_credentials(current_user.nickname, "test")
|> post(request_path)
activity = Repo.get(Activity, note_activity.id)
current_user = Repo.get_by(User, ap_id: note_activity.data["actor"])
assert json_response(response, 200) == ActivityRepresenter.to_map(activity, %{user: current_user})
activity_user = Repo.get_by(User, ap_id: note_activity.data["actor"])
assert json_response(response, 200) == ActivityRepresenter.to_map(activity, %{user: activity_user, for: current_user})
end
end