X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fostatus%2Fuser_representer_test.exs;h=e3863d2e9ca1d087bd39be70111d173c2617a4a5;hb=8a41d34673532c03cf99a2334399b9436e245f1b;hp=d5d70f5c61a53c8d4704a1e8ae487ad58e62583e;hpb=30e9b22f96f2bf1cd895e993190f40afba159bb6;p=akkoma
diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs
index d5d70f5c6..e3863d2e9 100644
--- a/test/web/ostatus/user_representer_test.exs
+++ b/test/web/ostatus/user_representer_test.exs
@@ -1,3 +1,7 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.OStatus.UserRepresenterTest do
use Pleroma.DataCase
alias Pleroma.Web.OStatus.UserRepresenter
@@ -6,7 +10,7 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do
alias Pleroma.User
test "returns a user with id, uri, name and link" do
- user = build(:user, nickname: "ã¬ã¤ã³")
+ user = insert(:user, %{nickname: "ã¬ã¤ã³"})
tuple = UserRepresenter.to_simple_form(user)
res = :xmerl.export_simple_content(tuple, :xmerl_xml) |> to_string
@@ -21,6 +25,8 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do
#{user.bio}
#{user.nickname}
+
+ true
"""
assert clean(res) == clean(expected)