As described here:
http://api.rubyonrails.org/classes/ActiveSupport/Testing/Declarative.html
I put it in the Ruby bundle because you can put the method into your test_helper.rb to get it in any Ruby app.
Daniel