Class: MonkeyTest::Test
- Inherits:
-
Object
- Object
- MonkeyTest::Test
- Defined in:
- lib/monkeytest/test.rb
Instance Attribute Summary collapse
-
#assertions ⇒ Object
Returns the value of attribute assertions.
-
#fault ⇒ Object
Returns the value of attribute fault.
-
#location ⇒ Object
Returns the value of attribute location.
-
#message ⇒ Object
Returns the value of attribute message.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(name = nil) ⇒ Test
constructor
A new instance of Test.
- #passed? ⇒ Boolean
Constructor Details
#initialize(name = nil) ⇒ Test
Returns a new instance of Test.
6 7 8 |
# File 'lib/monkeytest/test.rb', line 6 def initialize(name=nil) @name = name end |
Instance Attribute Details
#assertions ⇒ Object
Returns the value of attribute assertions.
4 5 6 |
# File 'lib/monkeytest/test.rb', line 4 def assertions @assertions end |
#fault ⇒ Object
Returns the value of attribute fault.
4 5 6 |
# File 'lib/monkeytest/test.rb', line 4 def fault @fault end |
#location ⇒ Object
Returns the value of attribute location.
4 5 6 |
# File 'lib/monkeytest/test.rb', line 4 def location @location end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/monkeytest/test.rb', line 4 def @message end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/monkeytest/test.rb', line 4 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/monkeytest/test.rb', line 4 def status @status end |
Instance Method Details
#passed? ⇒ Boolean
10 11 12 13 |
# File 'lib/monkeytest/test.rb', line 10 def passed? return true if @status == "PASS" return false end |