X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fostatus%2Fuser_representer_test.exs;h=d5d70f5c61a53c8d4704a1e8ae487ad58e62583e;hb=9223038319f0281f104fb9bb85c0cb8f6e52984a;hp=a401a56daecc4514bcbf82552e92952522964d44;hpb=d23f3e3cf3c9a0051532493c60dbd9a7557bae81;p=akkoma
diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs
index a401a56da..d5d70f5c6 100644
--- a/test/web/ostatus/user_representer_test.exs
+++ b/test/web/ostatus/user_representer_test.exs
@@ -6,15 +6,19 @@ 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.bio}
#{user.nickname}
"""