Class: Matest::SpecStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/matest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



65
66
67
# File 'lib/matest.rb', line 65

def block
  @block
end

#descriptionObject (readonly)

Returns the value of attribute description.



66
67
68
# File 'lib/matest.rb', line 66

def description
  @description
end

#resultObject (readonly)

Returns the value of attribute result.



67
68
69
# File 'lib/matest.rb', line 67

def result
  @result
end

Instance Method Details

#locationObject



75
76
77
# File 'lib/matest.rb', line 75

def location
  "%s:%d" % block.source_location
end