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.
69 70 71 72 73 |
# File 'lib/matest.rb', line 69 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.
65 66 67 |
# File 'lib/matest.rb', line 65 def block @block end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
66 67 68 |
# File 'lib/matest.rb', line 66 def description @description end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
67 68 69 |
# File 'lib/matest.rb', line 67 def result @result end |
Instance Method Details
#location ⇒ Object
75 76 77 |
# File 'lib/matest.rb', line 75 def location "%s:%d" % block.source_location end |