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.
95 96 97 98 99 100 |
# File 'lib/gurke/step.rb', line 95 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.
93 94 95 |
# File 'lib/gurke/step.rb', line 93 def exception @exception end |
#scenario ⇒ Object (readonly)
Returns the value of attribute scenario.
93 94 95 |
# File 'lib/gurke/step.rb', line 93 def scenario @scenario end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
93 94 95 |
# File 'lib/gurke/step.rb', line 93 def state @state end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
93 94 95 |
# File 'lib/gurke/step.rb', line 93 def step @step end |
Instance Method Details
#failed? ⇒ Boolean
108 109 110 |
# File 'lib/gurke/step.rb', line 108 def failed? @state == :failed end |
#passed? ⇒ Boolean
120 121 122 |
# File 'lib/gurke/step.rb', line 120 def passed? @state == :passed end |
#pending? ⇒ Boolean
112 113 114 |
# File 'lib/gurke/step.rb', line 112 def pending? @state == :pending end |
#skipped? ⇒ Boolean
116 117 118 |
# File 'lib/gurke/step.rb', line 116 def skipped? @state == :skipped end |