Enable RSpec/ReceiveNever cop

What does this MR do and why?

This MR enables the RSpec/ReceiveNever cop, which is enabled by default in rubocop-rspec. The auto-correction was run to fix existing offences.

Related to #42182 (closed)

Screenshots or screen recordings

# bad
expect(foo).to receive(:bar).never

# good
expect(foo).not_to receive(:bar)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alishan Ladhani

Merge request reports

Loading