mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
ed13ae7787
The directory items controller specs that have a search param were not matching how things worked in production. In a non-test environment the UserSearch class depends on the `user_search_data` table being populated, so the tests I corrected now use this table as well to match reality. Also added a new test to match the 20 user limit for search results that currently exists. This 20 user limit is on the line between a bug and a feature but it is how it is currently working so we should document that. We have plans to increase this limit and it has been documented here: https://meta.discourse.org/t/296485 This PR is a no-op and only changes the tests. Co-authored-by: brrusselburg <25828824+brrusselburg@users.noreply.github.com>