From: Robert Klemme Date: 2008-06-06T15:33:57+09:00 Subject: Re: variable in lambda On 06.06.2008 03:40, salamond wrote: > I'm using this method in UnitTest. > Have you guys wondered, why Ruby Unit Test can't do something like this: > > class Test_${name} { > def setup {} > def test_${step1} {} > def test_${step2} {} > def teardown {} > } > > most of my unit test cases are like something above, and I want to > express all cases in data, > automatically generate cases in the run time > > Do u think it's possible? A lot is possible. But from what you write it is not clear what "it" in this case is. Can you be more concrete? Kind regards robert