Skip to content

Configurable #assert failure? #1

Description

Would it be useful to allow #assert to take an Exception argument and raise that instead of the Assertion exception if the assertion fails? Eg.

10.assert(ArgumentError) == 5  #=> raises ArgumentError

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