Make WorkerBatch spec more robust (#35656)

This commit is contained in:
David Roetzel 2025-08-04 16:04:40 +02:00 committed by GitHub
parent d8397040d7
commit eb273f904f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ RSpec.describe WorkerBatch do
end end
it 'persists the job IDs' do it 'persists the job IDs' do
expect(subject.jobs).to eq %w(foo bar) expect(subject.jobs).to contain_exactly('foo', 'bar')
end end
end end
end end
@ -67,7 +67,7 @@ RSpec.describe WorkerBatch do
end end
it 'removes the job from pending jobs' do it 'removes the job from pending jobs' do
expect(subject.jobs).to eq %w(bar baz) expect(subject.jobs).to contain_exactly('bar', 'baz')
end end
it 'decrements the number of pending jobs' do it 'decrements the number of pending jobs' do