The next time you think to type any of them, use
If the last statement in that block fails, your test runner will reflect the name and value of every variable in your assertion, like this:
See the assert{ 2.0 } blog to learn more about the philosophy behind this "nice Ruby hack". To add even more information, pass a diagnostic message to either
assert("my colleague made me do this"){ foo() == 42 }
InstallationGetassert{ 2.0 } the usual way:
gem install assert2It will require the crucial & conscious RubyNode library, by Dominik Bathon. Then add these lines to your test suites: require 'rubygems' require 'assert2'Send any suggestions to phlip2000@gmail.com! |