diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-07 19:28:23 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-07 19:28:23 +0200 |
commit | b403ea4d2b69cef4434ad68babdfb402d8227847 (patch) | |
tree | d07607b3387c89f4310881132a9e10a5389a5439 /test/activity_test.exs | |
parent | a9b2ad17596d1b6deca646239a95e94dc644ebf3 (diff) | |
parent | 60b4b0d725aefdca3eedd2d7708b0c96ee60c5f4 (diff) | |
download | pleroma-b403ea4d2b69cef4434ad68babdfb402d8227847.tar.gz pleroma-b403ea4d2b69cef4434ad68babdfb402d8227847.zip |
Merge branch 'develop' into dtluna/pleroma-feature/unfollow-activity
Diffstat (limited to 'test/activity_test.exs')
-rw-r--r-- | test/activity_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
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 |