Class: RSpec::Steps::StepResult
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Steps::StepResult
- Defined in:
- lib/rspec-steps/step-result.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#failed_step ⇒ Object
Returns the value of attribute failed_step.
-
#result ⇒ Object
Returns the value of attribute result.
-
#step ⇒ Object
Returns the value of attribute step.
Instance Method Summary collapse
Instance Attribute Details
#exception ⇒ Object
Returns the value of attribute exception
2 3 4 |
# File 'lib/rspec-steps/step-result.rb', line 2 def exception @exception end |
#failed_step ⇒ Object
Returns the value of attribute failed_step
2 3 4 |
# File 'lib/rspec-steps/step-result.rb', line 2 def failed_step @failed_step end |
#result ⇒ Object
Returns the value of attribute result
2 3 4 |
# File 'lib/rspec-steps/step-result.rb', line 2 def result @result end |
#step ⇒ Object
Returns the value of attribute step
2 3 4 |
# File 'lib/rspec-steps/step-result.rb', line 2 def step @step end |
Instance Method Details
#failed? ⇒ Boolean
3 4 5 |
# File 'lib/rspec-steps/step-result.rb', line 3 def failed? return (!exception.nil?) end |
#has_executed_successfully? ⇒ Boolean
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rspec-steps/step-result.rb', line 7 def has_executed_successfully? if failed_step.nil? if exception.nil? true else raise exception end else raise failed_step.exception end end |
#is_after_failed_step? ⇒ Boolean
19 20 21 |
# File 'lib/rspec-steps/step-result.rb', line 19 def is_after_failed_step? !!failed_step end |