[rspec-devel] [ rspec-Bugs-11749 ] Use of 'rescue => e' does not catch all exceptions

noreply at rubyforge.org noreply at rubyforge.org
Thu Jun 21 14:50:18 EDT 2007


Bugs item #11749, was opened at 2007-06-21 12:50
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=11749&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Bob Cotton (bcotton)
Assigned to: Nobody (None)
Summary: Use of 'rescue => e' does not catch all exceptions

Initial Comment:

There are several uses of 'rescue => e' in Behaviour and Example. 

According my PixAxe book rescue without an exception type will only catch RuntimeException. 

This seems wrong. I've got Timeout::Error (an Interrupt) escaping and killing my entire spec run. very frustrating.



----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=11749&group_id=797


More information about the rspec-devel mailing list