Class: Mutant::Test::Report
- Inherits:
-
Object
- Object
- Mutant::Test::Report
- Includes:
- Adamantium::Flat, Anima::Update
- Defined in:
- lib/mutant/test.rb
Overview
Object to report test status
Instance Method Summary collapse
-
#failed? ⇒ Boolean
private
Test if test failed.
-
#marshal_dump ⇒ Array
private
Return marshallable data.
-
#marshal_load(array) ⇒ undefined
private
Load marshalled data.
Instance Method Details
#failed? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if test failed
22 23 24 |
# File 'lib/mutant/test.rb', line 22 def failed? !success? end |
#marshal_dump ⇒ Array
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return marshallable data
NOTE:
The test is intentionally NOT part of the mashalled data.
In rspec the example group cannot deterministically being marshalled, because
they reference a crazy mix of IO objects, global objects etc.
38 39 40 |
# File 'lib/mutant/test.rb', line 38 def marshal_dump [@output, @success] end |
#marshal_load(array) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Load marshalled data
50 51 52 |
# File 'lib/mutant/test.rb', line 50 def marshal_load(array) @output, @success = array end |