From: Suraj Kurapati Date: 2007-02-20T07:44:32+09:00 Subject: Re: Assertions Testing in irb Austin Ziegler wrote: > On 2/19/07, Bharat Ruparel wrote: >> Ok, then there has to be "recommended" way to "invoke" the unit testing >> functionality in irb. > > Yes. The recommended way is "don't." Unit tests are things that are > designed to be repeatable and related to classes that you're building. > Simply using the assertions gains you absolutely nothing with respect > to using IRB itself. Agreed. Besides, it's often simpler to write: raise unless foo == bar than it is to use Test::Unit's assertions: assert_equal foo, bar # is it foo, bar or bar, foo? I always forget ;) -- Posted via http://www.ruby-forum.com/.