Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Configurable #assert failure? #1

ghost opened this Issue Oct 26, 2009 · 0 comments


None yet
0 participants

ghost commented Oct 26, 2009

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment