Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 497 Bytes

RSpec-RedundantPredicateMatcher.md

File metadata and controls

25 lines (17 loc) · 497 Bytes

Pattern: Redundant predicate matcher

Issue: -

Description

Checks for redundant predicate matcher.

Examples

# bad
expect(foo).to be_exist(bar)
expect(foo).not_to be_include(bar)
expect(foo).to be_all(bar)

# good
expect(foo).to exist(bar)
expect(foo).not_to include(bar)
expect(foo).to all be(bar)

Further Reading