Method: RSpec::Core::Example#exception

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

#exceptionObject (readonly)

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



26
27
28
# File 'lib/rspec/core/example.rb', line 26

def exception
  @exception
end