From: James Britt Date: 2005-11-03T02:48:04+09:00 Subject: Re: TeSLa, a Domain Specific Language for Unit Testing Ryan Leavengood wrote: > What about: > > test_method :add_item => [:item4] do > before {@items = [:item1, :item2, :item3]} > after {size == 4} > end > > Or variations thereof. Such as test_method :add_item => [:item4] do given {@items = [:item1, :item2, :item3]} expected {size == 4} end James -- http://www.ruby-doc.org - The Ruby Documentation Site http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys