docbrown/spec/services/search
Daniel Uber d585ae2bf8
Prevent occasional matching on random name by specifying one (#14087)
We could mistakenly be picking up matches on user "name" rather than
user username due to faker giving a name like "Gale" or "Haley" or
"Annalee" which match the search term "ale".

Give an explicitly non-matching pattern for the name string to prevent
this.

Sampling from Faker::Name.name and filtering for case insensitive
matching against the search term shows slightly higher than 1% of
results will match this "ale" triple. Low enough to go unnoticed for a
long time.
2021-06-28 09:48:27 -05:00
..
article_spec.rb Search results: prioritize articles titles (#13918) 2021-06-09 14:28:19 +02:00
chat_channel_membership_spec.rb Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
comment_spec.rb Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
listing_spec.rb Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
podcast_episode_spec.rb Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
reading_list_spec.rb Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
tag_spec.rb Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
user_spec.rb Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
username_spec.rb Prevent occasional matching on random name by specifying one (#14087) 2021-06-28 09:48:27 -05:00