summaryrefslogtreecommitdiff
path: root/test/activity_test.exs
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-05 11:46:59 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-05 11:46:59 +0200
commitc48c381e909240dcece9f961e4728fa712d089cc (patch)
tree6aa2a1edbfe5d15860ab5090c645bc9ba312ab96 /test/activity_test.exs
parent6cf7c132282e612514af992c6dea0b03ee5b678d (diff)
parentc85998ab8a21f042ab57345a7baa9e1e27c308d1 (diff)
downloadpleroma-c48c381e909240dcece9f961e4728fa712d089cc.tar.gz
pleroma-c48c381e909240dcece9f961e4728fa712d089cc.zip
Merge branch 'develop' into dtluna/pleroma-refactor/1
Diffstat (limited to 'test/activity_test.exs')
-rw-r--r--test/activity_test.exs7
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