More fixes
This commit is contained in:
parent
e002858071
commit
6ac5d48575
|
@ -6,7 +6,7 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do
|
||||||
alias Pleroma.User
|
alias Pleroma.User
|
||||||
|
|
||||||
test "returns a user with id, uri, name and link" do
|
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)
|
tuple = UserRepresenter.to_simple_form(user)
|
||||||
|
|
||||||
res = :xmerl.export_simple_content(tuple, :xmerl_xml) |> to_string
|
res = :xmerl.export_simple_content(tuple, :xmerl_xml) |> to_string
|
||||||
|
|
|
@ -58,7 +58,7 @@ test "a like activity" do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "an activity" do
|
test "an activity" do
|
||||||
{:ok, user} = UserBuilder.insert()
|
user = insert(:user)
|
||||||
# {:ok, mentioned_user } = UserBuilder.insert(%{nickname: "shp", ap_id: "shp"})
|
# {:ok, mentioned_user } = UserBuilder.insert(%{nickname: "shp", ap_id: "shp"})
|
||||||
mentioned_user = insert(:user, %{nickname: "shp"})
|
mentioned_user = insert(:user, %{nickname: "shp"})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue