The over-active seattle ruby brigade released an interesting tidbit a while ago, which has only recently been thoroughly explained: Heckle.
Think of it as Dr Ruby Frankenstein.
Heckle’s aim is to mutate your Ruby code and cause your unit tests to fail. If your unit tests don’t fail on the mutated code, then you’re not testing everything, and you should go directly to jail.
Heckle works by using the ParseTree and RubyToRuby libraries to grab the abstract syntax tree of methods, modify them, and evaluate the redefined method before running your tests. It can do all of this atomically, so each change can be seen individually.
Cwazy!
