diff options
author | lain <lain@soykaf.club> | 2020-03-31 17:47:34 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-03-31 17:47:34 +0200 |
commit | aebec1bac9831da2bed5ee571225d92dc99a5d59 (patch) | |
tree | a99220513995356c5e86be2e397c969ac7b67ed5 | |
parent | 643f15e77b7cdaaf2c22a876c98e5680edc32dc3 (diff) | |
download | pleroma-aebec1bac9831da2bed5ee571225d92dc99a5d59.tar.gz |
Validator Test: Small refactor.
-rw-r--r-- | test/web/activity_pub/object_validators/types/object_id_test.exs | 9 |
1 files changed, 4 insertions, 5 deletions
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 f4c5ed1dc..834213182 100644 --- 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) |