projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Web.RelMe: Fix having other values in rel attr
[akkoma]
/
test
/
object_test.exs
diff --git
a/test/object_test.exs
b/test/object_test.exs
index 0effb9505767d68b251b31f29b2423858184e3c9..a820a34ee87db85676218dd0b8589f5470ebcc89 100644
(file)
--- a/
test/object_test.exs
+++ b/
test/object_test.exs
@@
-5,7
+5,8
@@
defmodule Pleroma.ObjectTest do
use Pleroma.DataCase
import Pleroma.Factory
defmodule Pleroma.ObjectTest do
use Pleroma.DataCase
import Pleroma.Factory
- alias Pleroma.{Repo, Object}
+ alias Pleroma.Repo
+ alias Pleroma.Object
test "returns an object by it's AP id" do
object = insert(:note)
test "returns an object by it's AP id" do
object = insert(:note)
@@
-36,6
+37,8
@@
defmodule Pleroma.ObjectTest do
found_object = Object.get_by_ap_id(object.data["id"])
refute object == found_object
found_object = Object.get_by_ap_id(object.data["id"])
refute object == found_object
+
+ assert found_object.data["type"] == "Tombstone"
end
test "ensures cache is cleared for the object" do
end
test "ensures cache is cleared for the object" do
@@
-51,6
+54,8
@@
defmodule Pleroma.ObjectTest do
cached_object = Object.get_cached_by_ap_id(object.data["id"])
refute object == cached_object
cached_object = Object.get_cached_by_ap_id(object.data["id"])
refute object == cached_object
+
+ assert cached_object.data["type"] == "Tombstone"
end
end
end
end
end
end