projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
non condition dir creation
[akkoma]
/
test
/
pleroma
/
activity_test.exs
diff --git
a/test/pleroma/activity_test.exs
b/test/pleroma/activity_test.exs
index 3e9fe209e7736c2bca2f25501e14781f55c07735..105f9f7668d9210494f0ea034c0c862cec99727c 100644
(file)
--- a/
test/pleroma/activity_test.exs
+++ b/
test/pleroma/activity_test.exs
@@
-197,6
+197,13
@@
defmodule Pleroma.ActivityTest do
assert [%{id: ^id1, object: %Object{}}, %{id: ^id2, object: %Object{}}] = activities
end
assert [%{id: ^id1, object: %Object{}}, %{id: ^id2, object: %Object{}}] = activities
end
+ test "get_by_id_with_user_actor/1" do
+ user = insert(:user)
+ activity = insert(:note_activity, note: insert(:note, user: user))
+
+ assert Activity.get_by_id_with_user_actor(activity.id).user_actor == user
+ end
+
test "get_by_id_with_object/1" do
%{id: id} = insert(:note_activity)
test "get_by_id_with_object/1" do
%{id: id} = insert(:note_activity)