diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-09-18 22:28:10 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-09-18 22:28:10 +0000 |
commit | f95a2b2cda236f7c0e5ced2a4698e2b10d99fa53 (patch) | |
tree | 6e94c388773d0a9f20eec7e9be26644090e4269a /test | |
parent | b0ec82d24a8611b12e9ed3a07c0373823bf78eb2 (diff) | |
parent | 0447c4271587f6dc3d87fa079aa78ae0b4e38245 (diff) | |
download | pleroma-f95a2b2cda236f7c0e5ced2a4698e2b10d99fa53.tar.gz |
Merge branch 'issue/733' into 'develop'
[#733] added test for Ostatus
See merge request pleroma/pleroma!1657
Diffstat (limited to 'test')
-rw-r--r-- | test/web/ostatus/ostatus_test.exs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs index f04a5cfc5..70a0e4473 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 |