aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-03 17:51:36 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-03 17:51:36 +0200
commitb34b046f16a44172ac96709dd0b6f5bced96d0b5 (patch)
tree476599549c0932fbe347fbcc277f2b6cc84b9375 /test
parent861a294cdae313c4c2edfc9840bf1083da0acd6e (diff)
downloadpleroma-b34b046f16a44172ac96709dd0b6f5bced96d0b5.tar.gz
Add user to announced status.
Diffstat (limited to 'test')
-rw-r--r--test/web/ostatus/activity_representer_test.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/ostatus/activity_representer_test.exs b/test/web/ostatus/activity_representer_test.exs
index d3c32e938..7f003226b 100644
--- a/test/web/ostatus/activity_representer_test.exs
+++ b/test/web/ostatus/activity_representer_test.exs
@@ -84,9 +84,9 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
note_user = User.get_cached_by_ap_id(note.data["actor"])
note = Repo.get(Activity, note.id)
- note_xml = ActivityRepresenter.to_simple_form(note, note_user)
+ note_xml = ActivityRepresenter.to_simple_form(note, note_user, true)
|> :xmerl.export_simple_content(:xmerl_xml)
- |> IO.iodata_to_binary
+ |> to_string
updated_at = announce.updated_at
|> NaiveDateTime.to_iso8601
@@ -111,7 +111,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
announce_xml = ActivityRepresenter.to_simple_form(announce, user)
|> :xmerl.export_simple_content(:xmerl_xml)
- |> IO.iodata_to_binary
+ |> to_string
assert clean(expected) == clean(announce_xml)
end