diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-30 13:37:46 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-30 13:37:46 +0000 |
commit | 2566467782e410aa910de9b55aece8c4ffd74ad1 (patch) | |
tree | effec95502007d8ad37165a9749938c9795d7073 /test | |
parent | 7f83b35a9dea7181b57d9b975742233813fa3a8b (diff) | |
parent | 1ae39441e6d516f8f1a0dd3ed47de9d8427477c5 (diff) | |
download | pleroma-2566467782e410aa910de9b55aece8c4ffd74ad1.tar.gz |
Merge branch '2201-i-hate-this' into 'develop'
User search: Once again, change uri handling.
Closes #2201
See merge request pleroma/pleroma!3048
Diffstat (limited to 'test')
-rw-r--r-- | test/user_search_test.exs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/user_search_test.exs b/test/user_search_test.exs index cc14e9741..c4b805005 100644 --- a/test/user_search_test.exs +++ b/test/user_search_test.exs @@ -36,6 +36,12 @@ defmodule Pleroma.UserSearchTest do assert first_user.id == user.id end + test "doesn't die if two users have the same uri" do + insert(:user, %{uri: "https://gensokyo.2hu/@raymoo"}) + insert(:user, %{uri: "https://gensokyo.2hu/@raymoo"}) + assert [_first_user, _second_user] = User.search("https://gensokyo.2hu/@raymoo") + end + test "returns a user with matching uri as the first result" do user = insert(:user, %{ |