From: Jim Weirich Date: 2006-03-09T10:29:27+09:00 Subject: Re: assert_raise question Eric Hodel wrote: > For a given input a method should only raise one class of exception. > The restriction forces you to write better tests. The reason I would like it is that the test is the specification of the behavior. I often wish to specify that a method will raise a more general exception than the one it actually raises. The actual exception raised may be an implementation detail that I don't wish to have expressed in the spec. -- -- Jim Weirich -- Posted via http://www.ruby-forum.com/.