Class: Omnitest::Skeptic::Result
- Inherits:
-
Core::Dash
- Object
- Core::Dash
- Omnitest::Skeptic::Result
- Extended by:
- Forwardable
- Defined in:
- lib/omnitest/skeptic/result.rb
Instance Method Summary collapse
- #status ⇒ Object
- #successful? ⇒ Boolean (also: #success?)
Instance Method Details
#status ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/omnitest/skeptic/result.rb', line 17 def status # A feature can be validated by different suites, or manually vs an automated suite. # That's why there's a precedence rather than boolean algebra here... return 'failed' if validations.values.any? { |v| v.status == :failed } return 'passed' if validations.values.any? { |v| v.status == :passed } return 'pending' if validations.values.any? { |v| v.status == :pending } 'skipped' end |
#successful? ⇒ Boolean Also known as: success?
11 12 13 |
# File 'lib/omnitest/skeptic/result.rb', line 11 def successful? execution_result.successful? end |