From: obscured by code Date: 2005-11-01T02:12:09+09:00 Subject: Re: TeSLa, a Domain Specific Language for Unit Testing Well, it doesn't quite works that way (the implementation, that is... I tried to avoid using 'eval' as long as I could) but yes, all references to properties or methods are to an instance of the class where the tests are specified. If you take a look at the example.rb script included in the package, you'll notice test_method :add_item => [:item4] do requires {@items = [:item1, :item2, :item3]} assert {size == 4} end is indeed declared just bellow the 'add_item' method in class Catalog and that 'items' is a property of that class. 'test_method' will create a clean instance of class Catalog and execute the 'add_item' method with :item4 as a parameter and 'assert' will check that 'size' (of the Catalog instance) is indeed 4 as long of the 'precondition' stated by requires was met. As for behavior-driven development, I never knew it existed, thanks a lot for the link, I'm going to have a look at it right away. By the way, I never intended for TeSLa to be a "pure" unit testing framework, maybe even include concepts from Eiffel's Design By Contract (so far that's just an idea I'm toying with) so let me know of any interesting concept you might have about testing in general and I'll take a look at it. Again, let me know of ways you think the syntax might be more readable/intuitive (even though I know that's a subject where people will never totally agree) Thanks a lot for the feedback