Method: RSpec::Core::Example::ExecutionResult#pending_exception

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

#pending_exceptionException?

Returns The exception triggered while executing the pending example. If no exception was triggered it would no longer get a status of :pending unless it was tagged with :skip.

Returns:

  • (Exception, nil)

    The exception triggered while executing the pending example. If no exception was triggered it would no longer get a status of :pending unless it was tagged with :skip.

[View source]

582
583
584
# File 'lib/rspec/core/example.rb', line 582

def pending_exception
  @pending_exception
end