Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 710 Bytes

RSpec-NotToNot.md

File metadata and controls

32 lines (22 loc) · 710 Bytes

Pattern: Inconsistent method use for negating expectation

Issue: -

Description

Checks for consistent method usage for negating expectations.

Examples

# bad
it '...' do
  expect(false).to_not be_true
end

# good
it '...' do
  expect(false).not_to be_true
end

Configurable attributes

Name Default value Configurable values
EnforcedStyle not_to not_to, to_not

Further Reading