Class: CI::Reporter::SpinachFailure
- Inherits:
-
Object
- Object
- CI::Reporter::SpinachFailure
- Defined in:
- lib/ci/reporter/spinach.rb
Instance Method Summary collapse
- #error? ⇒ Boolean
- #failure? ⇒ Boolean
-
#initialize(type, step, failure, step_location) ⇒ SpinachFailure
constructor
A new instance of SpinachFailure.
- #location ⇒ Object
- #message ⇒ Object
- #name ⇒ Object
Constructor Details
#initialize(type, step, failure, step_location) ⇒ SpinachFailure
Returns a new instance of SpinachFailure.
47 48 49 50 51 52 |
# File 'lib/ci/reporter/spinach.rb', line 47 def initialize(type, step, failure, step_location) @type = type @step = step @failure = failure @step_location = step_location end |
Instance Method Details
#error? ⇒ Boolean
58 59 60 |
# File 'lib/ci/reporter/spinach.rb', line 58 def error? @type == :error end |
#failure? ⇒ Boolean
54 55 56 |
# File 'lib/ci/reporter/spinach.rb', line 54 def failure? @type == :failed end |
#location ⇒ Object
70 71 72 |
# File 'lib/ci/reporter/spinach.rb', line 70 def location @failure.backtrace.join("\n") end |
#message ⇒ Object
66 67 68 |
# File 'lib/ci/reporter/spinach.rb', line 66 def @failure. end |
#name ⇒ Object
62 63 64 |
# File 'lib/ci/reporter/spinach.rb', line 62 def name @failure.class.name end |