Hello, At 23:20 20/05/2002 +0900, you wrote: > > I'm still not sure about this - what do folks think? > >I think I like it -- I've been putting my tests in separate files for a >while so it hurts my "But That's Not The Way We've Always Done It" nerve. >However, anything that combines unit tests and docs is a Good Thing. > >Where would setup and teardown move to? Perhaps a rename to test_setup and >test_teardown? > >Chris Maybe the proc could get a parameter specifying what needs to be done: class MyClass contextual_test :MyTest1 do | action | case action when :Setup xxx setup code here when :Teardown xxx teardown code here when :Test test itself here end end end # MyClass BTW: "when :Doc" could make sense too, it would return a doc string. Yours, Jean-Hugues ------------------------------------------------------------------------- Web: http://hdl.handle.net/1030.37/1.1 Phone: +33 (0) 4 92 27 74 17