class RSpec::Core::Notifications::ExampleNotification
def self.for(example)
- Private: -
def self.for(example) execution_result = example.execution_result if execution_result.pending_fixed? PendingExampleFixedNotification.new(example) elsif execution_result.example_skipped? SkippedExampleNotification.new(example) elsif execution_result.status == :pending PendingExampleFailedAsExpectedNotification.new(example) elsif execution_result.status == :failed FailedExampleNotification.new(example) else new(example) end end