Pattern: Inconsistent message expectation
Issue: -
Checks for consistent message expectation style.
This rule can be configured in your configuration using the EnforcedStyle
option.
# bad
expect(foo).to receive(:bar)
# good
allow(foo).to receive(:bar)
# bad
allow(foo).to receive(:bar)
# good
expect(foo).to receive(:bar)
Name | Default value | Configurable values |
---|---|---|
EnforcedStyle | allow |
allow , expect |