Class: Testify::TestResult
- Inherits:
-
Object
- Object
- Testify::TestResult
- Defined in:
- lib/test_result.rb
Overview
A TestResult object represents the results of running a single test, whatever that means in the context of your framework.
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#message ⇒ Object
Returns the value of attribute message.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TestResult
constructor
A new instance of TestResult.
Constructor Details
#initialize(options = {}) ⇒ TestResult
Returns a new instance of TestResult.
9 10 11 12 13 14 |
# File 'lib/test_result.rb', line 9 def initialize ( = {}) @status = [:status] @message = [:message] @file = [:file] @line = [:line] end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
7 8 9 |
# File 'lib/test_result.rb', line 7 def file @file end |
#line ⇒ Object
Returns the value of attribute line.
7 8 9 |
# File 'lib/test_result.rb', line 7 def line @line end |
#message ⇒ Object
Returns the value of attribute message.
7 8 9 |
# File 'lib/test_result.rb', line 7 def @message end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/test_result.rb', line 7 def status @status end |