summaryrefslogtreecommitdiff
path: root/test/web/ostatus/incoming_documents/delete_handling_test.exs
diff options
context:
space:
mode:
authorAlex S <alex.strizhakov@gmail.com>2019-04-02 19:16:29 +0700
committerAlex S <alex.strizhakov@gmail.com>2019-04-02 19:16:29 +0700
commit9e0567ec5237fc7a2ba37f5291962f3c58fd21f8 (patch)
tree6caabbf049051d3725662eb765013ee9b844f0cc /test/web/ostatus/incoming_documents/delete_handling_test.exs
parent484162c18774ff28842a517ae0afcaaf824e12bf (diff)
parentbd961a3badaf7aa7ffc97ab92a6b04367d1c514b (diff)
downloadpleroma-9e0567ec5237fc7a2ba37f5291962f3c58fd21f8.tar.gz
pleroma-9e0567ec5237fc7a2ba37f5291962f3c58fd21f8.zip
Merge develop into feature/770-add-emoji-tags
Diffstat (limited to 'test/web/ostatus/incoming_documents/delete_handling_test.exs')
-rw-r--r--test/web/ostatus/incoming_documents/delete_handling_test.exs7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/web/ostatus/incoming_documents/delete_handling_test.exs b/test/web/ostatus/incoming_documents/delete_handling_test.exs
index 412d894fd..ca6e61339 100644
--- a/test/web/ostatus/incoming_documents/delete_handling_test.exs
+++ b/test/web/ostatus/incoming_documents/delete_handling_test.exs
@@ -6,7 +6,6 @@ defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
alias Pleroma.Activity
alias Pleroma.Object
- alias Pleroma.Repo
alias Pleroma.Web.OStatus
setup do
@@ -32,10 +31,10 @@ defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
{:ok, [delete]} = OStatus.handle_incoming(incoming)
- refute Repo.get(Activity, note.id)
- refute Repo.get(Activity, like.id)
+ refute Activity.get_by_id(note.id)
+ refute Activity.get_by_id(like.id)
assert Object.get_by_ap_id(note.data["object"]["id"]).data["type"] == "Tombstone"
- assert Repo.get(Activity, second_note.id)
+ assert Activity.get_by_id(second_note.id)
assert Object.get_by_ap_id(second_note.data["object"]["id"])
assert delete.data["type"] == "Delete"