summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2023-11-07 16:00:13 -0500
committerMark Felder <feld@feld.me>2023-11-07 16:00:13 -0500
commit8076deeeb4547ff0878978bcbcfc4d2789f636c7 (patch)
treee88cef5f8687070e4fcc7607809586479f0fed92
parent11c520607fcb2bf5b8323d1b22b3123acf12efe1 (diff)
downloadpleroma-8076deeeb4547ff0878978bcbcfc4d2789f636c7.tar.gz
pleroma-8076deeeb4547ff0878978bcbcfc4d2789f636c7.zip
Activate test for object validator that has not been running
-rw-r--r--test/pleroma/ecto_type/activity_pub/object_validators/bare_uri_test.exs (renamed from test/pleroma/ecto_type/activity_pub/object_validators/bare_uri_test.ex)5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pleroma/ecto_type/activity_pub/object_validators/bare_uri_test.ex b/test/pleroma/ecto_type/activity_pub/object_validators/bare_uri_test.exs
index 226383c3c..8664f7b28 100644
--- a/test/pleroma/ecto_type/activity_pub/object_validators/bare_uri_test.ex
+++ b/test/pleroma/ecto_type/activity_pub/object_validators/bare_uri_test.exs
@@ -6,15 +6,16 @@ defmodule Pleroma.EctoType.ActivityPub.ObjectValidators.BareUriTest do
use Pleroma.DataCase, async: true
alias Pleroma.EctoType.ActivityPub.ObjectValidators.BareUri
+ alias Pleroma.EctoType.ActivityPub.ObjectValidators.SafeText
test "diaspora://" do
text = "diaspora://alice@fediverse.example/post/deadbeefdeadbeefdeadbeefdeadbeef"
- assert {:ok, text} = BareUri.cast(text)
+ assert {:ok, ^text} = BareUri.cast(text)
end
test "nostr:" do
text = "nostr:note1gwdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef"
- assert {:ok, text} = BareUri.cast(text)
+ assert {:ok, ^text} = BareUri.cast(text)
end
test "errors for non-URIs" do