Module: RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
- Defined in:
- lib/rspec/support.rb
Constant Summary collapse
- AVOID_RESCUING =
These exceptions are dangerous to rescue as rescuing them would interfere with things we should not interfere with.
[NoMemoryError, SignalException, Interrupt, SystemExit]
Class Method Summary collapse
Class Method Details
.===(exception) ⇒ Object
137 138 139 |
# File 'lib/rspec/support.rb', line 137 def self.===(exception) AVOID_RESCUING.none? { |ar| ar === exception } end |