projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
643f15e
)
Validator Test: Small refactor.
author
lain
<lain@soykaf.club>
Tue, 31 Mar 2020 15:47:34 +0000
(17:47 +0200)
committer
lain
<lain@soykaf.club>
Tue, 31 Mar 2020 15:47:34 +0000
(17:47 +0200)
test/web/activity_pub/object_validators/types/object_id_test.exs
patch
|
blob
|
history
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://",
- "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)