aboutsummaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-03-02 06:58:42 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-03-02 06:58:42 +0100
commit8e6f7fdb86bc7f90618c59ee4b13b30b94fda475 (patch)
treebdaae282b46e1be115a722cbd5277d9ca5bb450d /test/web
parent39a5bea9b73daa63203b0640d0a7906d6f1af143 (diff)
downloadpleroma-8e6f7fdb86bc7f90618c59ee4b13b30b94fda475.tar.gz
RelMe.maybe_put_rel_me/2: When true put "me" otherwise nil
Diffstat (limited to 'test/web')
-rw-r--r--test/web/rel_me_test.exs7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/web/rel_me_test.exs b/test/web/rel_me_test.exs
index 94cc01728..ba8038e69 100644
--- a/test/web/rel_me_test.exs
+++ b/test/web/rel_me_test.exs
@@ -37,13 +37,14 @@ defmodule Pleroma.Web.RelMeTest do
test "maybe_put_rel_me/2" do
profile_urls = ["https://social.example.org/users/lain"]
- attr = "rel=\"me\" "
+ attr = "me"
+ fallback = nil
assert Pleroma.Web.RelMe.maybe_put_rel_me("http://example.com/rel_me/null", profile_urls) ==
- ""
+ fallback
assert Pleroma.Web.RelMe.maybe_put_rel_me("http://example.com/rel_me/error", profile_urls) ==
- ""
+ fallback
assert Pleroma.Web.RelMe.maybe_put_rel_me("http://example.com/rel_me/anchor", profile_urls) ==
attr