gitlab-org--gitlab-foss/spec
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
..
config Small refactor and a few documentation fixes 2016-08-04 19:02:39 +02:00
controllers Add tests to Projects::Boards::IssuesController#create action 2016-10-06 11:00:01 +01:00
factories Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
features Merge branch '23025-issue-boards-defaults' into 'master' 2016-10-06 23:43:09 +00:00
finders Refactor TrendingProjectsFinder to support caching 2016-10-05 16:39:03 +02:00
fixtures Returns the total number of issues in the JSON response 2016-08-31 09:30:37 +01:00
helpers Merge branch 'rs-optimize-award_user_list-spec' into 'master' 2016-10-07 15:18:22 +00:00
initializers Give priority to environment variables 2016-08-03 15:48:48 +01:00
javascripts Fix inconsistent highlighting of already selected activity nav-links 2016-10-05 15:38:18 -05:00
lib Merge branch 'memoize_shell_secret_token' into 'master' 2016-10-07 10:35:03 +00:00
mailers override subject method in devise mailer 2016-10-03 18:07:28 +08:00
models Merge branch 'sh-fix-events-update-spec' into 'master' 2016-10-07 11:13:26 +00:00
policies Test if issue authors can access private projects 2016-09-20 14:57:23 -03:00
requests Merge branch 'ben.boeckel/gitlab-ce-api-visible-projects' into 'master' 2016-10-07 09:54:44 +00:00
routing Update user routing spec after constrainer logic changed 2016-10-06 19:50:48 +03:00
services Add markdown cache columns to the database, but don't use them yet 2016-10-07 02:54:25 +01:00
support Merge commit 'dev/security' into 'master' 2016-10-06 08:33:11 +02:00
tasks/gitlab Use File::exist? instead of File::exists? 2016-08-11 13:54:45 +03:00
uploaders Remove VideoJS and clean the integration 2016-07-20 11:36:42 +02:00
views Merge commit 'dev/security' into 'master' 2016-10-06 08:33:11 +02:00
workers Merge branch 'feature/improve-async-pipeline-processing' into 'master' 2016-10-06 08:42:35 +00:00
factories_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
rails_helper.rb
simplecov_env.rb Bump SimpleCov merge timeout to 365 days 2016-08-22 13:44:14 +02:00
spec_helper.rb Upgrade Devise from 4.1.1 to 4.2.0. 2016-09-27 20:08:49 -06:00
teaspoon_env.rb Add test coverage analysis for CoffeeScript (!5052) 2016-08-07 21:52:37 +02:00