Class: SpecTracker::TestStatus
- Inherits:
-
Object
- Object
- SpecTracker::TestStatus
- Defined in:
- lib/spec_tracker/test_status.rb
Instance Method Summary collapse
- #failure! ⇒ Object
- #failure? ⇒ Boolean
-
#initialize ⇒ TestStatus
constructor
A new instance of TestStatus.
- #missing! ⇒ Object
- #missing? ⇒ Boolean
- #skipped! ⇒ Object
- #skipped? ⇒ Boolean
- #success! ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize ⇒ TestStatus
Returns a new instance of TestStatus.
3 4 5 |
# File 'lib/spec_tracker/test_status.rb', line 3 def initialize @status = nil end |
Instance Method Details
#failure! ⇒ Object
15 16 17 |
# File 'lib/spec_tracker/test_status.rb', line 15 def failure! @status = FAILURE end |
#failure? ⇒ Boolean
19 20 21 |
# File 'lib/spec_tracker/test_status.rb', line 19 def failure? @status == FAILURE end |
#missing! ⇒ Object
31 32 33 |
# File 'lib/spec_tracker/test_status.rb', line 31 def missing! @status = MISSING end |
#missing? ⇒ Boolean
35 36 37 |
# File 'lib/spec_tracker/test_status.rb', line 35 def missing? @status == MISSING end |
#skipped! ⇒ Object
23 24 25 |
# File 'lib/spec_tracker/test_status.rb', line 23 def skipped! @status = SKIPPED end |
#skipped? ⇒ Boolean
27 28 29 |
# File 'lib/spec_tracker/test_status.rb', line 27 def skipped? @status == SKIPPED end |
#success! ⇒ Object
7 8 9 |
# File 'lib/spec_tracker/test_status.rb', line 7 def success! @status = SUCCESS end |
#success? ⇒ Boolean
11 12 13 |
# File 'lib/spec_tracker/test_status.rb', line 11 def success? @status == SUCCESS end |