mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: user directory returns staged users during search
This commit is contained in:
parent
546b206da0
commit
92a831bae6
5 changed files with 90 additions and 53 deletions
|
@ -134,6 +134,9 @@ describe UserSearch do
|
|||
# don't return staged users
|
||||
results = search_for(staged.username)
|
||||
expect(results).to be_blank
|
||||
|
||||
results = search_for(staged.username, include_staged_users: true)
|
||||
expect(results.first.username).to eq(staged.username)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue