summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/representers/activity_representer_test.exs
diff options
context:
space:
mode:
authordtluna <dtluna@openmailbox.org>2017-04-16 17:10:25 +0300
committerdtluna <dtluna@openmailbox.org>2017-04-16 17:10:25 +0300
commit85bd480be333896ca9cc0ade0e68ea99e10aaaa7 (patch)
treeaa545ad989ae70367aff25e1dfe970f28e88e55a /test/web/twitter_api/representers/activity_representer_test.exs
parentce1eef9c989f0387168b48f6f61a4c1f84b3f5b5 (diff)
parente158e32124a62f2c93a8910bf3edc4519c4a13e6 (diff)
downloadpleroma-85bd480be333896ca9cc0ade0e68ea99e10aaaa7.tar.gz
pleroma-85bd480be333896ca9cc0ade0e68ea99e10aaaa7.zip
Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma into feature/help-test
Diffstat (limited to 'test/web/twitter_api/representers/activity_representer_test.exs')
-rw-r--r--test/web/twitter_api/representers/activity_representer_test.exs9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs
index a9129bccc..d0cccb149 100644
--- a/test/web/twitter_api/representers/activity_representer_test.exs
+++ b/test/web/twitter_api/representers/activity_representer_test.exs
@@ -45,8 +45,11 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
test "an activity" do
{:ok, user} = UserBuilder.insert
- {:ok, mentioned_user } = UserBuilder.insert(%{nickname: "shp", ap_id: "shp"})
- {:ok, follower} = UserBuilder.insert(%{following: [User.ap_followers(user)]})
+ # {:ok, mentioned_user } = UserBuilder.insert(%{nickname: "shp", ap_id: "shp"})
+ mentioned_user = insert(:user, %{nickname: "shp"})
+
+ # {:ok, follower} = UserBuilder.insert(%{following: [User.ap_followers(user)]})
+ follower = insert(:user, %{following: [User.ap_followers(user)]})
object = %Object{
data: %{
@@ -62,7 +65,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
}
}
- content_html = "Some content mentioning <a href='shp'>@shp</shp>"
+ content_html = "Some content mentioning <a href='#{mentioned_user.ap_id}'>@shp</shp>"
content = HtmlSanitizeEx.strip_tags(content_html)
date = DateTime.from_naive!(~N[2016-05-24 13:26:08.003], "Etc/UTC") |> DateTime.to_iso8601