Wrong
by Alex Chaffee
- 1,481 views
Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail. The Wrong idea is to replace all those countless assert\_this, assert\_that, ...
Wrong provides a general assert method that takes a predicate block. Assertion failure messages are rich in detail. The Wrong idea is to replace all those countless assert\_this, assert\_that, should\_something library methods which only exist to give a more useful failure message than "assertion failed". Wrong replaces all of them in one fell swoop, since if you can write it in Ruby, Wrong can make a sensible failure message out of it.
Statistics
- Likes
- 0
- Downloads
- 6
- Comments
- 0
- Embed Views
- Views on SlideShare
- 1,481
- Total Views
- 1,481
