Method: RSpec::Core::Example#exception

Defined in:
lib/rspec/core/example.rb

#exceptionvoid (readonly)

Returns the first exception raised in the context of running this example (nil if no exception is raised).

[View source]

158
159
160
# File 'lib/rspec/core/example.rb', line 158

def exception
  @exception
end