Skip to content
Snippets Groups Projects
Commit ab6ebbae authored by cascode's avatar cascode
Browse files

added test for #499

parent 5b23dfa1
No related branches found
No related tags found
No related merge requests found
......@@ -756,5 +756,13 @@ defmodule Pleroma.UserTest do
assert user_four ==
User.search("lain@ple") |> List.first() |> Map.put(:search_distance, nil)
end
test "finds a user whose name is nil" do
_user = insert(:user, %{name: "notamatch", nickname: "testuser@pleroma.amplifie.red"})
user_two = insert(:user, %{name: nil, nickname: "lain@pleroma.soykaf.com"})
assert user_two ==
User.search("lain@pleroma.soykaf.com") |> List.first() |> Map.put(:search_distance, nil)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment