Skip to content

RSpec/PredicateMatcher: more careful approach? #466

@zverok

Description

@zverok

Imagine the code:

expect(parser.handles?('string')).to be_truthy

RSpec/PredicateMatcher will suggest to change this into:

expect(parser).to be_handles('string')

...which reads pretty unnatural, to say the least.
Maybe there could be some check to prevent this suggestion in some of cases? (It is hard to clearly specify them, though)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions