Attest allows you to define spec-like tests inline (within the same file as your actual code) which means almost non-existant overheads to putting some tests around your code. It also tries to not be too prescriptive regarding the 'right' way to test. You want to test private methods - go ahead, access unexposed instance variables - no worries, pending and disabled tests are first class citizens. Don't like the output format, use a different one or write your own. Infact you don't even have to define you tests inline if you prefer the 'traditional' way, separate directory and all. You should be allowed to test your code the way you want to, not the way someone else says you have to!

installgem install attest

Alan Skorkin

3,856 total downloads 2,033 for this version


gem 'attest', '~> 0.2.0'
  1. 0.2.0 December 20, 2010 (35.5 KB)
  2. 0.1.0 November 28, 2010 (16.5 KB)
Development Dependencies
  1. fakefs >= 0
  2. mocha >= 0