Class: CI::Reporter::CucumberFailure
- Inherits:
-
Object
- Object
- CI::Reporter::CucumberFailure
- Defined in:
- lib/ci/reporter/cucumber.rb
Instance Attribute Summary collapse
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
- #error? ⇒ Boolean
- #failure? ⇒ Boolean
-
#initialize(step) ⇒ CucumberFailure
constructor
A new instance of CucumberFailure.
- #location ⇒ Object
- #message ⇒ Object
- #name ⇒ Object
Constructor Details
#initialize(step) ⇒ CucumberFailure
Returns a new instance of CucumberFailure.
17 18 19 |
# File 'lib/ci/reporter/cucumber.rb', line 17 def initialize(step) @step = step end |
Instance Attribute Details
#step ⇒ Object (readonly)
Returns the value of attribute step.
15 16 17 |
# File 'lib/ci/reporter/cucumber.rb', line 15 def step @step end |
Instance Method Details
#error? ⇒ Boolean
25 26 27 |
# File 'lib/ci/reporter/cucumber.rb', line 25 def error? !failure? end |
#failure? ⇒ Boolean
21 22 23 |
# File 'lib/ci/reporter/cucumber.rb', line 21 def failure? true end |
#location ⇒ Object
37 38 39 |
# File 'lib/ci/reporter/cucumber.rb', line 37 def location step.exception.backtrace.join("\n") end |
#message ⇒ Object
33 34 35 |
# File 'lib/ci/reporter/cucumber.rb', line 33 def step.exception. end |
#name ⇒ Object
29 30 31 |
# File 'lib/ci/reporter/cucumber.rb', line 29 def name step.exception.class.name end |