Class: Matest::SpecStatus
- Inherits:
-
Object
- Object
- Matest::SpecStatus
- Defined in:
- lib/matest.rb
Direct Known Subclasses
ExceptionRaised, NotANaturalAssertion, SpecFailed, SpecPassed, SpecSkipped
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(block, result, description = nil) ⇒ SpecStatus
constructor
A new instance of SpecStatus.
- #location ⇒ Object
Constructor Details
#initialize(block, result, description = nil) ⇒ SpecStatus
Returns a new instance of SpecStatus.
65 66 67 68 69 |
# File 'lib/matest.rb', line 65 def initialize(block, result, description=nil) @block = block @result = result @description = description end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
61 62 63 |
# File 'lib/matest.rb', line 61 def block @block end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
62 63 64 |
# File 'lib/matest.rb', line 62 def description @description end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
63 64 65 |
# File 'lib/matest.rb', line 63 def result @result end |
Instance Method Details
#location ⇒ Object
71 72 73 |
# File 'lib/matest.rb', line 71 def location "%s:%d" % block.source_location end |