wspurgin / rspec-sidekiq

RSpec for Sidekiq
https://github.com/wspurgin/rspec-sidekiq
Other
662 stars 133 forks source link

Correct evaluation for "in" option #194

Closed wspurgin closed 1 year ago

wspurgin commented 1 year ago

First reported in #183 and solution from #182

Closes #183

Additional freebies in this PR:

image

The one downside of the failure message is that Sidekiq stores a float for the at option, and it might cause confusion when you first see the actual vs expected (your eye first goes to the missing .0. We purposefully coerce to integers to avoid fractional second drift when comparing.