class RSpec::Core::Example

def finish(reporter)

def finish(reporter)
  if @exception
    record_finished 'failed', :exception_encountered => @exception
    reporter.example_failed self
    false
  elsif @pending_declared_in_example
    record_finished 'pending', :pending_message => @pending_declared_in_example
    reporter.example_pending self
    true
  elsif pending
    record_finished 'pending', :pending_message => 'Not Yet Implemented'
    reporter.example_pending self
    true
  else
    record_finished 'passed'
    reporter.example_passed self
    true
  end
end