Skip to content

Allow higher-order expectations #29

@bdsoha

Description

@bdsoha

Allow higher-order expectations to assert all values in an iterable item using syntax expect([1,2,3]).each.to_be_numeric(3).

  • Add a chain method for .each to assert each value independently
  • Add a chain method for .all as an alias to .each
  • Add a chain method for .any to assert that at least one value conforms to the expectation

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⌛ on-holdAwaiting an action or decision to move forward✨ enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions