X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fostatus%2Fuser_representer_test.exs;h=d5d70f5c61a53c8d4704a1e8ae487ad58e62583e;hb=9223038319f0281f104fb9bb85c0cb8f6e52984a;hp=80ac8181ad5ebffc16ef36857a328b71ad72fadc;hpb=04fb4f9c47b273256d628eefa5bd8af77cca31fb;p=akkoma
diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs
index 80ac8181a..d5d70f5c6 100644
--- a/test/web/ostatus/user_representer_test.exs
+++ b/test/web/ostatus/user_representer_test.exs
@@ -6,10 +6,10 @@ 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}
@@ -18,6 +18,7 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do
#{user.nickname}#{user.name}#{user.bio}
+ #{user.bio}#{user.nickname}
"""