Closed aprescott closed 7 years ago
I managed to put the fix for this together in #136, along with a test.
Closed by #136
For future reference, you can put "Closes #135" in the body of the PR and this will get closed automagically when I merge.
Yep, I know that trick, but forgot to include it and thought it best to not edit the PR.
Thanks for the merge!
Some of my tests started failing with
have_enqueued_job
on 3.0.2, whereas before they were passing on 3.0.0. The failure is:I noticed the deprecation warning about switching to using
have_enqueued_sidekiq_job
, and that seems to work fine. Despite the deprecation, I would expect the two matchers to work the same and continue to be aliases.By looking at the comparison for
v3.0.0...v3.0.2
I noticed in https://github.com/philostler/rspec-sidekiq/commit/32d2f99756b23abb391830e69dffa8b89b7e524b that thealias
ing method was replaced with adef
+ regular method call:I think this introduced the failures.
have_enqueued_job
takes*expected_args
, but it then callshave_enqueued_sidekiq_job(expected_args)
, nothave_enqueued_sidekiq_job(*expected_args)
.