summaryrefslogtreecommitdiff
path: root/spec/rubocop/cop
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-10 12:08:59 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-10 12:08:59 +0000
commit7351a484d79236b7e9d47c86f2fcc970b7ae10b0 (patch)
tree651b5fca7ea0460e3ce7c687cfa9e3a3b37eefc8 /spec/rubocop/cop
parentb4ded0ba7b4d2cdbed5b1f331cf2083a25ee4d7c (diff)
downloadgitlab-ce-7351a484d79236b7e9d47c86f2fcc970b7ae10b0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/rubocop/cop')
-rw-r--r--spec/rubocop/cop/scalability/cron_worker_context_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/rubocop/cop/scalability/cron_worker_context_spec.rb b/spec/rubocop/cop/scalability/cron_worker_context_spec.rb
index bf10b8dc02c..460514d9bed 100644
--- a/spec/rubocop/cop/scalability/cron_worker_context_spec.rb
+++ b/spec/rubocop/cop/scalability/cron_worker_context_spec.rb
@@ -58,7 +58,9 @@ describe RuboCop::Cop::Scalability::CronWorkerContext do
include CronjobQueue
def perform
- SomeOtherWorker.bulk_perform_async_with_contexts(contexts_for_arguments)
+ SomeOtherWorker.bulk_perform_async_with_contexts(things,
+ arguments_proc: -> (thing) { thing.id },
+ context_proc: -> (thing) { { project: thing.project } })
end
end
CODE
@@ -70,7 +72,9 @@ describe RuboCop::Cop::Scalability::CronWorkerContext do
include CronjobQueue
def perform
- SomeOtherWorker.bulk_perform_in_with_contexts(contexts_for_arguments)
+ SomeOtherWorker.bulk_perform_in_with_contexts(10.minutes, things,
+ arguments_proc: -> (thing) { thing.id },
+ context_proc: -> (thing) { { project: thing.project } })
end
end
CODE