On 2013-07-09, at 17:30, Frank Shearar <[email protected]> wrote:

> On 9 July 2013 16:24, Camillo Bruni <[email protected]> wrote:
>> Survey: who uses the following methods? and if yes why?
>> 
>> - shouldnt: aBlock raise: anExceptionalEvent whoseDescriptionDoesNotInclude: 
>> subString description: aString
>> - shouldnt: aBlock raise: anExceptionalEvent whoseDescriptionIncludes:       
>> subString description: aString
>> 
>> I honestly cannot wrap my head around these two methods.
> 
> They show that the code in the block raises an _informative_
> exception. So you get a FileNotFound exception... but what was the
> missing file? I don't know! Noone bothered to mention it!


no it is #shouldnt: it is the inverse.
the #should:... handler methods are fine, but these specific two methods are 
just insane.
I tried to reimplement them without looking at the original definition and I 
cannot come up with something that matches the name :) so there is definitely 
something wrong with it.

Reply via email to