mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 08:25:58 +08: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> |
||
---|---|---|
.. | ||
fabricators | ||
fixtures | ||
generator | ||
helpers | ||
import_export | ||
initializers | ||
integration | ||
integrity | ||
jobs | ||
lib | ||
mailers | ||
migrations | ||
models | ||
multisite | ||
requests | ||
script/import_scripts | ||
serializers | ||
services | ||
support | ||
system | ||
tasks | ||
views | ||
rails_helper.rb | ||
regenerate_swagger_docs | ||
swagger_helper.rb |