summaryrefslogtreecommitdiff
path: root/spec/tasks
diff options
context:
space:
mode:
authorMicaël Bergeron <mbergeron@gitlab.com>2018-03-29 12:26:55 -0400
committerMicaël Bergeron <mbergeron@gitlab.com>2018-03-29 12:26:55 -0400
commitda4fc5b89940323888e17a1b8e2552ea81662269 (patch)
tree20aae88b229b7d8308bad70c29de89a0477c5590 /spec/tasks
parentef10679418f6fca1a0bb8c0f5d57c1550e104183 (diff)
downloadgitlab-ce-da4fc5b89940323888e17a1b8e2552ea81662269.tar.gz
fix a future conflict
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/uploads/migrate_rake_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/tasks/gitlab/uploads/migrate_rake_spec.rb b/spec/tasks/gitlab/uploads/migrate_rake_spec.rb
index 8f93ffa0edd..f273992008e 100644
--- a/spec/tasks/gitlab/uploads/migrate_rake_spec.rb
+++ b/spec/tasks/gitlab/uploads/migrate_rake_spec.rb
@@ -23,7 +23,8 @@ describe 'gitlab:uploads:migrate rake tasks' do
shared_examples 'enqueue jobs in batch' do |batch:|
it do
expect(ObjectStorage::MigrateUploadsWorker)
- .to receive(:enqueue!).exactly(batch).times
+ .to receive(:perform_async).exactly(batch).times
+ .and_return("A fake job.")
run
end