← Back to Upcase

Sidekiq Problem

(AntonioIrizarry) #1

Fixed not sure how to delete yet

(Geoff Harcourt) #2

Hey @tonytaudesign, no need to delete the post, leaving it up with your original question might help someone else who has a similar issue in the future.

(AntonioIrizarry) #3

Trying to figure how to do asynchronous tests for sidekiq tasks. Any idea where to start with this?

(Geoff Harcourt) #4

If you can test the synchronous task (MyWorkerClass.new.peform), then you should be covered on the asynchronous ones. If you want to test queueing, Sidekiq also has easy matchers for that.

There’s a good page on testing tips and gotchas on the Sidekiq repo:

And there’s a great RSpec plugin that I really like: