Method: RSpec::Core::Example#set_exception
- Defined in:
- lib/rspec/core/example.rb
#set_exception(exception) ⇒ Object
Used internally to set an exception in an after hook, which captures the exception but doesn’t raise it.
155 156 157 |
# File 'lib/rspec/core/example.rb', line 155 def set_exception(exception) @exception ||= exception end |