Class: Minitest::Distributed::ResultType
- Inherits:
-
T::Enum
- Object
- T::Enum
- Minitest::Distributed::ResultType
- Extended by:
- T::Sig
- Defined in:
- lib/minitest/distributed/result_type.rb
Class Method Summary collapse
Class Method Details
.of(result) ⇒ Object
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/minitest/distributed/result_type.rb', line 89 def self.of(result) if result.passed? Passed elsif result.failure.is_a?(Minitest::Requeue) Requeued elsif result.failure.is_a?(Minitest::Discard) Discarded elsif result.skipped? Skipped elsif result.error? Error else Failed end end |