Wrapper around a RSpec
error or failure to be used by the test
suite to interpret results.
# File lib/ci/reporter/rspec.rb, line 38 def initialize(failure) @failure = failure @exception = failure.exception end
# File lib/ci/reporter/rspec.rb, line 47 def error? !failure? end
# File lib/ci/reporter/rspec.rb, line 43 def failure? @failure.expectation_not_met? end
# File lib/ci/reporter/rspec.rb, line 53 def location() (exception.backtrace || ["No backtrace available"]).join("\n") end
# File lib/ci/reporter/rspec.rb, line 52 def message() exception.message end
# File lib/ci/reporter/rspec.rb, line 51 def name() exception.class.name end