More fixes

This commit is contained in:
lain 2018-11-29 00:25:43 +01:00
parent e002858071
commit 6ac5d48575
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,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

View file

@ -58,7 +58,7 @@ test "a like activity" do
end
test "an activity" do
{:ok, user} = UserBuilder.insert()
user = insert(:user)
# {:ok, mentioned_user } = UserBuilder.insert(%{nickname: "shp", ap_id: "shp"})
mentioned_user = insert(:user, %{nickname: "shp"})