Validator Test: Small refactor.
authorlain <lain@soykaf.club>
Tue, 31 Mar 2020 15:47:34 +0000 (17:47 +0200)
committerlain <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

index f4c5ed1dc0c720148b7f96e83e7cf0a883ba76c5..8342131828b8c76441ba05c44ea0801d64e22b99 100644 (file)
@@ -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)