From: gabriele renzi Date: 2005-09-04T19:26:28+09:00 Subject: Re: Idea about Test::Unit Christian Neukirchen ha scritto: > "Trans" writes: > > >>I've gotten tired of this verbosity myself and have started playing >>with: >> >> require 'quicktest' >> >> test :foo { >> ... >> } > > > Truly amazing, I wrote *exactly* the same thing for myself. Except > mine is called "quiktest" and the test name is optional (you need to > use parens or do...end in above, btw). :-P > quicktest seem to be a common name[1] :) IIRC something like this was already planned from Nathaniel Talbott, but I think that if you're writing a single test class per file even the test{} could be avoided. [1] I wrote a "quicktest" thing too, but it was different, wrapping sparse assertions in a test case to allow testing quick scripts like this: def foo(x,y) .. end assert_equal something, foo(2,3)