gitlab-org--gitlab-foss/spec/helpers
Rémy Coutable 212cf8f950 Merge branch 'rs-optimize-award_user_list-spec' into 'master'
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
2016-10-07 15:18:22 +00:00
..
application_helper_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
auth_helper_spec.rb Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00
blob_helper_spec.rb edit_blob_link can receive the blob to avoid access to the repository 2016-08-18 16:30:25 +02:00
broadcast_messages_helper_spec.rb Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
ci_status_helper_spec.rb Fix ci_status_helper_spec to look for new SVGs 2016-07-19 11:11:52 -07:00
commits_helper_spec.rb Remove persistent XSS vulnerability in `commit_person_link` helper 2016-04-17 18:42:49 -04:00
diff_helper_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
emails_helper_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
events_helper_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
form_helper_spec.rb Standardize the way we check for and display form errors 2016-04-04 21:37:07 -04:00
git_helper_spec.rb Add more tests for merge request versions feature 2016-09-07 10:22:57 +03:00
gitlab_markdown_helper_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
gitlab_routing_helper_spec.rb UI and copywriting improvements 2016-06-14 13:18:14 +02:00
graph_helper_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
groups_helper_spec.rb Syntax fixes and better tests for helper methods. Updated docs. 2016-09-15 14:10:49 -05:00
icons_helper_spec.rb
import_helper_spec.rb Don't create groups for unallowed users when importing projects 2016-08-31 12:55:45 -03:00
issuables_helper_spec.rb Small improvements thanks to Robert's feedback 2016-09-30 12:02:54 +02:00
issues_helper_spec.rb Optimize the `award_user_list` helper spec 2016-10-07 16:34:58 +02:00
labels_helper_spec.rb Updated label links to work correctly for filtering 2016-04-26 09:13:03 +01:00
members_helper_spec.rb Fix specs that requires an access request 2016-09-22 11:12:17 +02:00
merge_requests_helper_spec.rb Remove JiraIssue model and replace references with ExternalIssue 2016-06-16 01:25:18 +03:00
milestones_helper_spec.rb Ensure milestone counts work with no data 2016-09-07 15:27:14 -05:00
notes_helper_spec.rb Revert unrelevant changes 2016-08-16 10:00:13 +02:00
notifications_helper_spec.rb Refactor notification helper and fix notification service 2016-03-30 10:44:20 +02:00
page_layout_helper_spec.rb Update Hamlit to 2.6.1 2016-08-18 13:26:32 -05:00
preferences_helper_spec.rb Implementing 'Groups View' and 'TODOs View' as options for dashboard preferences. 2016-03-24 19:59:54 +01:00
projects_helper_spec.rb Change user & group landing page routing from /u/:name & /groups/:name to /:name 2016-10-06 19:50:48 +03:00
runners_helper_spec.rb Fix specs 2015-10-14 17:29:18 +02:00
search_helper_spec.rb Backport search_helper changes from EE 2016-09-14 14:31:02 +03:00
sidekiq_helper_spec.rb Reformat Regexp 2016-09-08 15:46:22 +02:00
submodule_helper_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
tab_helper_spec.rb
time_helper_spec.rb Cleanup the use of duration and optimize some queries 2016-08-10 23:12:02 +08:00
tree_helper_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
visibility_level_helper_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00