X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fostatus%2Fuser_representer_test.exs;h=a4afc2cf78efbb0badb543f2bb249167fac4c165;hb=9d1c0ec18dcf407bbac14868f64e98e1ec499c34;hp=a401a56daecc4514bcbf82552e92952522964d44;hpb=1c00eb4a90cddb7518a823d9304f6aee4fd3ef78;p=akkoma
diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs
index a401a56da..a4afc2cf7 100644
--- a/test/web/ostatus/user_representer_test.exs
+++ b/test/web/ostatus/user_representer_test.exs
@@ -6,15 +6,18 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do
alias Pleroma.User
test "returns a user with id, uri, name and link" do
- user = build(:user)
+ user = build(:user, nickname: "ã¬ã¤ã³")
tuple = UserRepresenter.to_simple_form(user)
- res = :xmerl.export_simple_content(tuple, :xmerl_xml) |> IO.iodata_to_binary
+ res = :xmerl.export_simple_content(tuple, :xmerl_xml) |> to_string
expected = """
#{user.ap_id}
http://activitystrea.ms/schema/1.0/person
#{user.ap_id}
+ #{user.nickname}
+ #{user.name}
+ #{user.bio}
#{user.nickname}
"""