Parent

CI::Reporter::RSpecFailure

Wrapper around a RSpec error or failure to be used by the test suite to interpret results.

Attributes

exception[R]

Public Class Methods

new(failure) click to toggle source
# File lib/ci/reporter/rspec.rb, line 38
def initialize(failure)
  @failure = failure
  @exception = failure.exception
end

Public Instance Methods

error?() click to toggle source
# File lib/ci/reporter/rspec.rb, line 47
def error?
  !failure?
end
failure?() click to toggle source
# File lib/ci/reporter/rspec.rb, line 43
def failure?
  @failure.expectation_not_met?
end
location() click to toggle source
# File lib/ci/reporter/rspec.rb, line 53
def location() (exception.backtrace || ["No backtrace available"]).join("\n") end
message() click to toggle source
# File lib/ci/reporter/rspec.rb, line 52
def message() exception.message end
name() click to toggle source
# File lib/ci/reporter/rspec.rb, line 51
def name() exception.class.name end

[Validate]

Generated with the Darkfish Rdoc Generator 2.