class RSpec::Core::Notifications::PendingExampleFailedAsExpectedNotification

def exception

Returns:
  • (Exception) - The exception that occurred while the pending example was executed
def exception
  example.execution_result.pending_exception
end