You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to assert some method does not enqueue either of two sidekiq jobs, and I get this message from rspec:
1) MyClass does not enqueue either job
Failure/Error:
expect { my_method }
.not_to(
enqueue_sidekiq_job(JobOne)
.and enqueue_sidekiq_job(JobTwo)
)
NotImplementedError:
`expect(...).not_to matcher.and matcher` is not supported, since it creates a bit of an ambiguity. Instead, define negated versions of whatever matchers you wish to negate with `RSpec::Matchers.define_negated_matcher` and use `expect(...).to matcher.and matcher`.
It would be a nice feature to have negative matchers like not_enqueue_sidekiq_job for this use case.
The text was updated successfully, but these errors were encountered:
Definitely seems like something we could add and a good first issue for someone (since it's easy to define the negative version with RSpec::Matchers.define_negated_matcher). Good suggestion!
Trying to assert some method does not enqueue either of two sidekiq jobs, and I get this message from rspec:
It would be a nice feature to have negative matchers like
not_enqueue_sidekiq_job
for this use case.The text was updated successfully, but these errors were encountered: