summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-11-18 22:15:03 +0100
committerlain <lain@soykaf.club>2018-11-18 22:15:03 +0100
commit40d9d2098c85f1a8a6a5ff2b17adc78bbba3fd6c (patch)
treed5ad97e719935f24355f83d398190a3578925d32 /test
parentcafa15131a59ae404eaa48d056885db1f052c9ed (diff)
downloadpleroma-40d9d2098c85f1a8a6a5ff2b17adc78bbba3fd6c.tar.gz
pleroma-40d9d2098c85f1a8a6a5ff2b17adc78bbba3fd6c.zip
Fix user updating from AP.
Diffstat (limited to 'test')
-rw-r--r--test/user_test.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/user_test.exs b/test/user_test.exs
index f37f4521d..f345f001f 100644
--- a/test/user_test.exs
+++ b/test/user_test.exs
@@ -185,12 +185,14 @@ defmodule Pleroma.UserTest do
local: false,
nickname: "admin@mastodon.example.org",
ap_id: "http://mastodon.example.org/users/admin",
- last_refreshed_at: a_week_ago
+ last_refreshed_at: a_week_ago,
+ info: %{}
)
assert orig_user.last_refreshed_at == a_week_ago
user = User.get_or_fetch_by_ap_id("http://mastodon.example.org/users/admin")
+ assert user.info.source_data["endpoints"]
refute user.last_refreshed_at == orig_user.last_refreshed_at
end