From: "Mauricio Fernández" Date: 2004-08-31T06:02:25+09:00 Subject: Re: Literate testing? On Sat, Aug 28, 2004 at 07:45:33AM +0900, Massimiliano Mirra - bard wrote: > Mauricio Fern�ndez writes: > > > I believe you can make it look a bit better by using Kernel#caller > > and Module#method_added; > > I confess I have absolutely no idea how. :-) > > > it would also be nice to generate test > > cases for Test::Unit (for instance by defining the test_* methods in > > MyClass::LiterateTests so that they can be included in a test suite > > later). > > Nice. I tried, and the last call shows test_* methods get defined, > but Test::Unit says `No tests were specified.'. I think you were bitten by the IMHO bug explained in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/2829 -- Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com