X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Factivity_test.exs;h=366a2f9572290d139e81cd2563b4d1e42ee4f1ec;hb=ed1eb5deea35ff2c3487ef550fad3a543a80cb32;hp=ce6eb15451f7ad7ba6b126d41a9d034b007532ae;hpb=7a0046d1271d97d635294ee0cace135d32b141ba;p=akkoma diff --git a/test/activity_test.exs b/test/activity_test.exs index ce6eb1545..366a2f957 100644 --- a/test/activity_test.exs +++ b/test/activity_test.exs @@ -15,4 +15,11 @@ 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