Pattern: Inconsistent method use for negating expectation
Issue: -
Checks for consistent method usage for negating expectations.
# bad
it '...' do
expect(false).to_not be_true
end
# good
it '...' do
expect(false).not_to be_true
end
Name | Default value | Configurable values |
---|---|---|
EnforcedStyle | not_to |
not_to , to_not |