Class: Gurke::Step::StepResult
- Inherits:
-
Object
- Object
- Gurke::Step::StepResult
- Defined in:
- lib/gurke/step.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#scenario ⇒ Object
readonly
Returns the value of attribute scenario.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
- #failed? ⇒ Boolean
-
#initialize(step, scenario, state, err = nil) ⇒ StepResult
constructor
A new instance of StepResult.
- #passed? ⇒ Boolean
- #pending? ⇒ Boolean
- #skipped? ⇒ Boolean
Constructor Details
#initialize(step, scenario, state, err = nil) ⇒ StepResult
Returns a new instance of StepResult.
93 94 95 96 97 98 |
# File 'lib/gurke/step.rb', line 93 def initialize(step, scenario, state, err = nil) @step = step @state = state @scenario = scenario @exception = err end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
91 92 93 |
# File 'lib/gurke/step.rb', line 91 def exception @exception end |
#scenario ⇒ Object (readonly)
Returns the value of attribute scenario.
91 92 93 |
# File 'lib/gurke/step.rb', line 91 def scenario @scenario end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
91 92 93 |
# File 'lib/gurke/step.rb', line 91 def state @state end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
91 92 93 |
# File 'lib/gurke/step.rb', line 91 def step @step end |
Instance Method Details
#failed? ⇒ Boolean
106 107 108 |
# File 'lib/gurke/step.rb', line 106 def failed? @state == :failed end |
#passed? ⇒ Boolean
118 119 120 |
# File 'lib/gurke/step.rb', line 118 def passed? @state == :passed end |
#pending? ⇒ Boolean
110 111 112 |
# File 'lib/gurke/step.rb', line 110 def pending? @state == :pending end |
#skipped? ⇒ Boolean
114 115 116 |
# File 'lib/gurke/step.rb', line 114 def skipped? @state == :skipped end |