projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into 'remove-twitter-api'
[akkoma]
/
test
/
web
/
activity_pub
/
object_validators
/
types
/
object_id_test.exs
diff --git
a/test/web/activity_pub/object_validators/types/object_id_test.exs
b/test/web/activity_pub/object_validators/types/object_id_test.exs
index f4c5ed1dc0c720148b7f96e83e7cf0a883ba76c5..8342131828b8c76441ba05c44ea0801d64e22b99 100644
(file)
--- a/
test/web/activity_pub/object_validators/types/object_id_test.exs
+++ b/
test/web/activity_pub/object_validators/types/object_id_test.exs
@@
-10,13
+10,12
@@
defmodule Pleroma.Web.ObjectValidators.Types.ObjectIDTest do
@non_uris [
"https://",
@non_uris [
"https://",
- "rin"
+ "rin",
+ 1,
+ :x,
+ %{"1" => 2}
]
]
- test "it rejects integers" do
- assert :error == ObjectID.cast(1)
- end
-
test "it accepts http uris" do
Enum.each(@uris, fn uri ->
assert {:ok, uri} == ObjectID.cast(uri)
test "it accepts http uris" do
Enum.each(@uris, fn uri ->
assert {:ok, uri} == ObjectID.cast(uri)