From: Raymond O'Connor Date: 2009-12-10T15:55:17+09:00 Subject: Re: Chain Method in Class with Method in Module Aaron Patterson wrote: > On Thu, Dec 10, 2009 at 01:33:58PM +0900, Raymond O'Connor wrote: >> I'd like to chain setup in a unit test, so that it calls a method in a >> module BEFORE running through the setup code. I'd like to do it without >> having to put super() in the test's setup method. > > What's wrong with super()? We use it in all of our other objects. > Tests are normal objects too. :-) Trying to keep things as encapsulated as possible. Just seems wrong that people including the module need to know to call super in setup before their own setup code. -- Posted via http://www.ruby-forum.com/.