212cf8f950
Optimize the `award_user_list` helper spec According to https://gitlab.com/gitlab-org/gitlab-ce/issues/23034#note_16586657, each test for this helper generated 1,833 queries. Now we only generate stubbed records, and only as many as we need for each test. This also corrects a slight logic bug in the helper itself. When the number of awards was greater than the limit (9 by default), _and_ the current user was one of them, we actually included 10 names, including "You", plus the remaining count. Now we return the correct number regardless. See merge request !6722 |
||
---|---|---|
.. | ||
application_helper_spec.rb | ||
auth_helper_spec.rb | ||
blob_helper_spec.rb | ||
broadcast_messages_helper_spec.rb | ||
ci_status_helper_spec.rb | ||
commits_helper_spec.rb | ||
diff_helper_spec.rb | ||
emails_helper_spec.rb | ||
events_helper_spec.rb | ||
form_helper_spec.rb | ||
git_helper_spec.rb | ||
gitlab_markdown_helper_spec.rb | ||
gitlab_routing_helper_spec.rb | ||
graph_helper_spec.rb | ||
groups_helper_spec.rb | ||
icons_helper_spec.rb | ||
import_helper_spec.rb | ||
issuables_helper_spec.rb | ||
issues_helper_spec.rb | ||
labels_helper_spec.rb | ||
members_helper_spec.rb | ||
merge_requests_helper_spec.rb | ||
milestones_helper_spec.rb | ||
notes_helper_spec.rb | ||
notifications_helper_spec.rb | ||
page_layout_helper_spec.rb | ||
preferences_helper_spec.rb | ||
projects_helper_spec.rb | ||
runners_helper_spec.rb | ||
search_helper_spec.rb | ||
sidekiq_helper_spec.rb | ||
submodule_helper_spec.rb | ||
tab_helper_spec.rb | ||
time_helper_spec.rb | ||
tree_helper_spec.rb | ||
visibility_level_helper_spec.rb |