[rspec-users] question about throw_symbol

David Chelimsky
Wed, 19 Aug 2009 12:56:36 -0000

On Tue, Aug 18, 2009 at 2:46 PM, Tom Stuart<tom at experthuman.com>
wrote:
> On 18 Aug 2009, at 20:16, Paul Mylchreest wrote:
>>
>> So, taking from your book, on page 212:
>
> [...]
>>
>> I guess that is a typo, correct?
>
> As an aside, I don''t understand this section of the book
("Expecting a
> Throw") at all. The original version of the loop already "short
circuits"
> (with return) without using throw/catch. What does "as soon as
> working_too_hard == true" mean? And yes, it''s weird to be
setting a
> throw_symbol expectation on a call to a method which is catching that
throw.

Yes - this has been reported in the errata and has not yet been
addressed. It will be before we get to treeware :)

>
> Cheers,
> -Tom