Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 330 Bytes

RSpec-InvalidPredicateMatcher.md

File metadata and controls

19 lines (12 loc) · 330 Bytes

Pattern: Invalid predicate matcher

Issue: -

Description

Checks invalid usage for predicate matcher.

Predicate matcher does not need a question. This rule checks an unnecessary question in predicate matcher.

Examples

# bad
expect(foo).to be_something?

# good
expect(foo).to be_something