class Spec::Runner::Reporter::Failure

def expectation_not_met? # :nodoc:

:nodoc:
def expectation_not_met?  # :nodoc:
  @exception.is_a?(Spec::Expectations::ExpectationNotMetError)
end

def header

RuntimeError in 'A new account should have a zero balance'
'A new account should have a zero balance' FIXED
'A new account should have a zero balance' FAILED

== Examples

RuntimeError occured.
no longer needs to be pending. RuntimeError indicates that a
failed expectation. FIXED indicates a pending example that passes, and
example and an indicator of the type of failure. FAILED indicates a
Header messsage for reporting this failure, including the name of the
def header
  if expectation_not_met?
    "'#{@example_name}' FAILED"
  elsif pending_fixed?
    "'#{@example_name}' FIXED"
  else
    "#{@exception.class.name} in '#{@example_name}'"
  end
end

def initialize(group_description, example_description, exception) # :nodoc:

:nodoc:
def initialize(group_description, example_description, exception)  # :nodoc:
  @example_name = "#{group_description} #{example_description}"
  @exception = exception
end

def pending_fixed? # :nodoc:

:nodoc:
def pending_fixed? # :nodoc:
  @exception.is_a?(Spec::Example::PendingExampleFixedError)
end