Pattern: Inconsistent implicit expectation
Issue: -
Checks that a consistent implicit expectation style is used.
This rule can be configured using the EnforcedStyle
option.
# bad
it { should be_truthy }
# good
it { is_expected.to be_truthy }
# bad
it { is_expected.to be_truthy }
# good
it { should be_truthy }
Name | Default value | Configurable values |
---|---|---|
EnforcedStyle | is_expected |
is_expected , should |