Class: Smartest::TestRunState
- Inherits:
-
Object
- Object
- Smartest::TestRunState
- Defined in:
- lib/smartest/test_run_state.rb
Instance Attribute Summary collapse
-
#pending_reason ⇒ Object
readonly
Returns the value of attribute pending_reason.
Instance Method Summary collapse
Instance Attribute Details
#pending_reason ⇒ Object (readonly)
Returns the value of attribute pending_reason.
5 6 7 |
# File 'lib/smartest/test_run_state.rb', line 5 def pending_reason @pending_reason end |
Instance Method Details
#pending(reason = nil) ⇒ Object
7 8 9 10 |
# File 'lib/smartest/test_run_state.rb', line 7 def pending(reason = nil) @pending_reason = StatusReason.normalize(reason) nil end |
#pending? ⇒ Boolean
12 13 14 |
# File 'lib/smartest/test_run_state.rb', line 12 def pending? !@pending_reason.nil? end |