diff options
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/uploads/migrate_rake_spec.rb | 3 |
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 |