diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-04-22 15:34:29 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-04-22 15:34:29 +0200 |
commit | cef4a4d7095eae474c0bebaa4b0fb0001f140672 (patch) | |
tree | 4bc0c9062e597e2d85c005d93ef6dbacf098e84a /test/web/ostatus/user_representer_test.exs | |
parent | 04fb4f9c47b273256d628eefa5bd8af77cca31fb (diff) | |
download | pleroma-cef4a4d7095eae474c0bebaa4b0fb0001f140672.tar.gz pleroma-cef4a4d7095eae474c0bebaa4b0fb0001f140672.zip |
Fix utf8 problems with iolists.
Diffstat (limited to 'test/web/ostatus/user_representer_test.exs')
-rw-r--r-- | test/web/ostatus/user_representer_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs index 80ac8181a..a4afc2cf7 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 = """ <id>#{user.ap_id}</id> |