have_enqueued_sidekiq_job() matches jobs with any arguments (same as enqueue_sidekiq_job() or have_enqueued_sidekiq_job(any_args)). Previously it would only match jobs with no args (#215)
New features ✨
You can now specify the number of jobs that should match the expectation! Thanks you @3v0k4 for the much requested feature!
[BREAKING] Make have_enqueued_sidekiq_job() match jobs with any arguments (same as enqueue_sidekiq_job() or have_enqueued_sidekiq_job(any_args)) (#215)
Add support for expected number of jobs to both enqueue_sidekiq_job and have_enqueued_sidekiq_job (#219)
4.2.0
Add warning about have_enqueued_sidekiq_job with no arguments (default will change in next major release) (#216, #217)
4.1.0
Add Composable support to enqueue_sidekiq_job and
have_enqueued_sidekiq_job (#211)
Add immediately to specify that a job should be enqueued without any delay (#210)
Restore the old normalizing expected args behavior with symbols (#205)
fixes an unintentional breaking change in 4.0.0
4.0.0
[BREAKING] Dropped support for matching jobs on ActiveJob's private API args, (e.g. _aj_globalid and _aj_ruby2_keywords). _aj_globalid can be replaced with the object itself, e.g. have_enqueued_sidekiq_job(user).
[BREAKING] Dropped support for Ruby 2.6
[BREAKING] Mocking Sidekiq::Batch is now opt in (was opt-out) by default
[BREAKING] Dropped the have_enqueued_job matcher (deprecated since v3)
Add support for builtin argument matchers from rspec mocks for
have_enqueued_sidekiq_job (#200)
Add #on to have_enqueued_sidekiq_job to support testing queue at enqueue time (#197)
Add enqueue_sidekiq_job for block-syntax style expectations
Clarified have_enqueued_sidekiq_job error message to make it clear that the "actual arguments" list is an array of argument-lists across all enqueued jobs. (#195)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on rspec-sidekiq to permit the latest version.
Release notes
Sourced from rspec-sidekiq's releases.
Changelog
Sourced from rspec-sidekiq's changelog.
... (truncated)
Commits
5becc96
Prep for 5.0 release (#218)865e45c
Support expected counts (#219)8066f7c
loosely match arguments withhave_enqueued_sidekiq_job
(#215)f6eeff6
Bump to 4.2.0d24cc9e
Tweak deprecation to clarify change (#217)f1b4a20
deprecate have_enqueued_sidekiq_job with no arguments (#216)0e710d7
Require matchers (#214)de8d049
Drop CI for Ruby 2.7 (EOL) (#213)9987d85
Bump versioncb1d2f0
Include composable module in base matcher (#211)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show