RubyGems.org

wrong

0.6.2

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 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. Also provided are several helper methods, like rescuing, capturing, and d.

installgem install wrong
Authors

Steve Conover, Alex Chaffee

13,283 total downloads 382 for this version
Owners

2cddfa1d5e719e79aeab4e351c1793e929c2f01cc7d18c260ca80d32c402ba0b

Gemfile
gem "wrong", "~> 0.6.2"
Versions
  1. 0.6.2 March 24, 2012
  2. 0.6.2 March 24, 2012 java
  3. 0.6.1 February 3, 2012 java
  4. 0.6.1 February 3, 2012
  5. 0.6.0 October 13, 2011 java
Show all versions (36 total)