Module: RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-support-3.12.0/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



142
143
144
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-support-3.12.0/lib/rspec/support.rb', line 142

def self.===(exception)
  AVOID_RESCUING.none? { |ar| ar === exception }
end