diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/web/ostatus/feed_representer_test.exs | 2 | ||||
-rw-r--r-- | test/web/ostatus/user_representer_test.exs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/web/ostatus/feed_representer_test.exs b/test/web/ostatus/feed_representer_test.exs index 1b0a10030..a5f28f6d5 100644 --- a/test/web/ostatus/feed_representer_test.exs +++ b/test/web/ostatus/feed_representer_test.exs @@ -22,7 +22,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenterTest do |> :xmerl.export_simple_content(:xmerl_xml) expected = """ - <feed xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/"> + <feed xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:poco="http://portablecontacts.net/spec/1.0"> <id>#{OStatus.feed_path(user)}</id> <title>#{user.nickname}'s timeline</title> <updated>#{most_recent_update}</updated> diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs index a401a56da..80ac8181a 100644 --- a/test/web/ostatus/user_representer_test.exs +++ b/test/web/ostatus/user_representer_test.exs @@ -15,6 +15,9 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do <id>#{user.ap_id}</id> <activity:object>http://activitystrea.ms/schema/1.0/person</activity:object> <uri>#{user.ap_id}</uri> + <poco:preferredUsername>#{user.nickname}</poco:preferredUsername> + <poco:displayName>#{user.name}</poco:displayName> + <poco:note>#{user.bio}</poco:note> <name>#{user.nickname}</name> <link rel="avatar" href="#{User.avatar_url(user)}" /> """ |