Pattern: Use of receive(...).never
instead of not_to receive(...)
Issue: -
Prefer not_to receive(...)
over receive(...).never
.
# bad
expect(foo).to receive(:bar).never
# good
expect(foo).not_to receive(:bar)
Pattern: Use of receive(...).never
instead of not_to receive(...)
Issue: -
Prefer not_to receive(...)
over receive(...).never
.
# bad
expect(foo).to receive(:bar).never
# good
expect(foo).not_to receive(:bar)