aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-09-12 09:59:34 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-09-12 10:25:43 +0300
commit4f548cb2b7b4a16a956a4f4a0ff64d279777925e (patch)
tree0b2c679425f03ba59da694e75520f20e6c9137e4 /test
parent50269e9cacdbb7834c31fc7ad9872b68977e9f10 (diff)
downloadpleroma-4f548cb2b7b4a16a956a4f4a0ff64d279777925e.tar.gz
added test for Ostatus
Diffstat (limited to 'test')
-rw-r--r--test/web/ostatus/ostatus_test.exs14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs
index 803a97695..ff00c53ee 100644
--- a/test/web/ostatus/ostatus_test.exs
+++ b/test/web/ostatus/ostatus_test.exs
@@ -628,4 +628,18 @@ defmodule Pleroma.Web.OStatusTest do
refute OStatus.is_representable?(note_activity)
end
end
+
+ describe "make_user/2" do
+ test "creates new user" do
+ {:ok, user} = OStatus.make_user("https://social.heldscal.la/user/23211")
+
+ created_user =
+ User
+ |> Repo.get_by(ap_id: "https://social.heldscal.la/user/23211")
+ |> Map.put(:last_digest_emailed_at, nil)
+
+ assert user.info
+ assert user == created_user
+ end
+ end
end