Method: RSpec::Core::Example#exception
- Defined in:
- lib/rspec/core/example.rb
permalink #exception ⇒ void (readonly)
Returns the first exception raised in the context of running this example (nil if no exception is raised).
158 159 160 |
# File 'lib/rspec/core/example.rb', line 158 def exception @exception end |