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