[rspec-users] question about throw_symbol

Tom Stuart
Tue, 18 Aug 2009 19:46:37 -0000

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.

Cheers,
-Tom