Parent

Methods

Class Index [+]

Quicksearch

Spec::Runner::Reporter::Failure

Attributes

exception[R]

The Exception object raised

Public Instance Methods

header() click to toggle source

Header messsage for reporting this failure, including the name of the example and an indicator of the type of failure. FAILED indicates a failed expectation. FIXED indicates a pending example that passes, and no longer needs to be pending. RuntimeError indicates that a RuntimeError occured.

Examples

  'A new account should have a zero balance' FAILED
  'A new account should have a zero balance' FIXED
  RuntimeError in 'A new account should have a zero balance'
    # File lib/spec/runner/reporter.rb, line 89
89:         def header
90:           if expectation_not_met?
91:             "'#{@example_name}' FAILED"
92:           elsif pending_fixed?
93:             "'#{@example_name}' FIXED"
94:           else
95:             "#{@exception.class.name} in '#{@example_name}'"
96:           end
97:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.