class RSpec::Core::Notifications::ExampleNotification

def self.for(example)

Other tags:
    Private: -
def self.for(example)
  execution_result = example.execution_result
  return SkippedExampleNotification.new(example) if execution_result.example_skipped?
  return new(example) unless execution_result.status == :pending || execution_result.status == :failed
  klass = if execution_result.pending_fixed?
            PendingExampleFixedNotification
          elsif execution_result.status == :pending
            PendingExampleFailedAsExpectedNotification
          else
            FailedExampleNotification
          end
  exception_presenter = Formatters::ExceptionPresenter::Factory.new(example).build
  klass.new(example, exception_presenter)
end