Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Consider renaming be_true and be_false to be_truthy and be_falsey #283

@myronmarston

Description

@myronmarston

I've heard some grumbling about this recently, and I've always found it a bit puzzling as well. be_true and be_false really act like be_truthy and be_falsey but aren't named as such. I think lots of folks think be_true passes if and only if the value is true, and be_false passes if and only if the value is false but that's not the case. You can already do be true and be false (no underscore) for the exact match, so I don't think there's any need to change the semantics of be_true and be_false -- instead, I'd like to deprecate them, in favor of be_truthy and be_falsey, which are more accurately named. Thoughts?

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