summaryrefslogtreecommitdiff
path: root/test/user_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/user_test.exs')
-rw-r--r--test/user_test.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/user_test.exs b/test/user_test.exs
index 0c87b778c..7f1f60644 100644
--- a/test/user_test.exs
+++ b/test/user_test.exs
@@ -370,4 +370,8 @@ defmodule Pleroma.UserTest do
refute Repo.get(Activity, activity.id)
end
+
+ test "get_public_key_for_ap_id fetches a user that's not in the db" do
+ assert {:ok, _key} = User.get_public_key_for_ap_id("http://mastodon.example.org/users/admin")
+ end
end