Sending an email with Sidekiq RSpec Test failed because Array is empty and could not change from 0 to 1
问题 I am trying to test sending an email with Sidekiq and I am having an error which means it doesn't enqueue since my test shows it didn't change from 0 to 1 in size. Could it be I am missing something out or how can I fix this? Error expected `Array#size` to have changed by 1, but was changed by 0 0) Sending Mail sends email to sidekiq Failure/Error: expect do OrderPointsMailer.paid_order_email(customer_detail.id).deliver_later end.to change(Sidekiq::Worker.jobs, :size).by(1) expected `Array