X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Factivity_test.exs;h=55849c5221b5c00a84afd53f572bacd72696a64f;hb=0020b22688f390fe182301311633a4b167e48e6c;hp=ce6eb15451f7ad7ba6b126d41a9d034b007532ae;hpb=82914e1e4de37747653c83644b428c1ba29428c9;p=akkoma diff --git a/test/activity_test.exs b/test/activity_test.exs index ce6eb1545..55849c522 100644 --- a/test/activity_test.exs +++ b/test/activity_test.exs @@ -15,4 +15,13 @@ defmodule Pleroma.ActivityTest do assert activity == found_activity end + + test "returns the activity that created an object" do + activity = insert(:note_activity) + + found_activity = + Pleroma.Activity.get_create_activity_by_object_ap_id(activity.data["object"]["id"]) + + assert activity == found_activity + end end