Disallow usage of Sidekiq::Testing.inline!
without a block in specs
#1747
Closed
Bennet-Sunder
started this conversation in
Ideas
Replies: 1 comment
-
We don’t keep cops that relate to testing third-party libraries in rubocop-rspec. See #1374 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From Sidekiq's testing guide, it is suggested to use
Sidekiq::Testing.inline!
with a block so that it doesn't share state.https://github.com/sidekiq/sidekiq/wiki/Testing#testing-workers-inline
So this should throw a warning for the below spec
Beta Was this translation helpful? Give feedback.
All reactions