From d1c10ad2fb7641c88eec04e9474af143170c507a Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 5 Sep 2017 09:35:00 +0200 Subject: [PATCH] Fix specs. --- test/web/twitter_api/representers/activity_representer_test.exs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs index 906f8dd98..500afdac7 100644 --- a/test/web/twitter_api/representers/activity_representer_test.exs +++ b/test/web/twitter_api/representers/activity_representer_test.exs @@ -131,7 +131,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do "external_url" => "some url", "tags" => ["content", "mentioning", "nsfw"], "activity_type" => "post", - "possibly_sensitive" => true + "possibly_sensitive" => true, + "uri" => activity.data["object"]["id"] } assert ActivityRepresenter.to_map(activity, %{user: user, for: follower, mentioned: [mentioned_user]}) == expected_status @@ -159,6 +160,6 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do assert map["is_post_verb"] == false assert map["activity_type"] == "delete" - assert map["id"] == object.data["id"] + assert map["uri"] == object.data["id"] end end