Commit 9d77f4ab authored by Steven Fuchs's avatar Steven Fuchs

adapt to new user factory behavior

parent dfc621a5
Pipeline #31115 passed with stages
in 10 minutes and 35 seconds
......@@ -16,7 +16,7 @@ test "for remote user" do
end
test "for local user" do
user = insert(:user)
user = insert(:user, discoverable: false)
assert Pleroma.Web.Metadata.build_tags(%{user: user}) =~
"<meta content=\"noindex, noarchive\" name=\"robots\">"
......@@ -40,7 +40,7 @@ test "for local user set to discoverable" do
test "search exclusion metadata is included" do
clear_config([:instance, :public], false)
user = insert(:user, bio: "This is my secret fedi account bio")
user = insert(:user, bio: "This is my secret fedi account bio", discoverable: false)
assert ~s(<meta content="noindex, noarchive" name="robots">) ==
Pleroma.Web.Metadata.build_tags(%{user: user})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment