Fix retweet spec.
authorRoger Braun <roger@rogerbraun.net>
Wed, 26 Apr 2017 06:55:00 +0000 (08:55 +0200)
committerRoger Braun <roger@rogerbraun.net>
Wed, 26 Apr 2017 06:55:00 +0000 (08:55 +0200)
test/web/twitter_api/twitter_api_controller_test.exs

index eb952a230c98b734707cdc43decf74ef76a73cb5..6c249be7d619a0807437b3ce5e795f080cc6e46f 100644 (file)
@@ -344,8 +344,8 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest 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