forked from AkkomaGang/akkoma
adapt to new user factory behavior
This commit is contained in:
parent
dfc621a529
commit
9d77f4abf8
1 changed files with 2 additions and 2 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue